class HQMF::GenericValueContainer

Attributes

type[RW]
value[RW]

Public Class Methods

from_json(json) click to toggle source
# File lib/hqmf-model/types.rb, line 414
def self.from_json(json)
  json = json.with_indifferent_access
  HQMF::GenericValueContainer.new(json['type'], json['value'])
end
new(type, value) click to toggle source
# File lib/hqmf-model/types.rb, line 409
def initialize(type, value)
  @type = type
  @value = value
end

Public Instance Methods

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