class Cnccs::Ccs

Public Instance Methods

to_aciibib(prefix = "", count = 1) click to toggle source

@param prefix [String] @param count [Integer] @return [String]

# File lib/relaton_gb/ccs.rb, line 11
def to_aciibib(prefix = "", count = 1)
  pref = prefix.empty? ? prefix : prefix + "."
  pref += "ccs"
  out = count > 1 ? "#{pref}::\n" : ""
  out += "#{pref}.code:: #{code}\n" if code
  out += "#{pref}.description:: #{description}\n" if description
  out
end
to_hash() click to toggle source

@return [Hash]

# File lib/relaton_gb/ccs.rb, line 4
def to_hash
  { "code" => code }
end