class HQMF::Identifier

Attributes

extension[RW]
root[RW]
type[RW]

Public Class Methods

from_json(json) click to toggle source
# File lib/hqmf-model/types.rb, line 365
def self.from_json(json)
  json = json.with_indifferent_access
  HQMF::Identifier.new(json['type'], json['root'], json['extension'])
end
new(type, root, extension=nil) click to toggle source
# File lib/hqmf-model/types.rb, line 359
def initialize(type, root, extension=nil)
  @type = type || 'II'
  @root = root
  @extension = extension
end

Public Instance Methods

==(other) click to toggle source
# File lib/hqmf-model/types.rb, line 374
def ==(other)
  check_equality(self,other)
end
to_json() click to toggle source
# File lib/hqmf-model/types.rb, line 370
def to_json
  build_hash(self, [:type, :root, :extension])
end