class HQMF::ED
What does ED
stand for? ED
has a lot more elements / attributes to represent, but only caring about what I see used…
Attributes
media_type[RW]
type[RW]
value[RW]
Public Class Methods
from_json(json)
click to toggle source
# File lib/hqmf-model/types.rb, line 391 def self.from_json(json) json = json.with_indifferent_access HQMF::ED.new(json['type'], json['value'], json['media_type']) end
new(type, value, media_type)
click to toggle source
# File lib/hqmf-model/types.rb, line 385 def initialize(type, value, media_type) @type = type || 'ED' @value = value @media_type = media_type end
Public Instance Methods
==(other)
click to toggle source
# File lib/hqmf-model/types.rb, line 400 def ==(other) check_equality(self,other) end
to_json()
click to toggle source
# File lib/hqmf-model/types.rb, line 396 def to_json build_hash(self, [:type, :value, :media_type]) end