Class: HQMF::ED
- Inherits:
-
Object
- Object
- HQMF::ED
- Includes:
- Conversion::Utilities
- Defined in:
- lib/hqmf-model/types.rb
Overview
What does ED stand for? ED has a lot more elements / attributes to represent, but only caring about what I see used…
Instance Attribute Summary collapse
-
#media_type ⇒ Object
Returns the value of attribute media_type.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(type, value, media_type) ⇒ ED
constructor
A new instance of ED.
- #to_json ⇒ Object
Methods included from Conversion::Utilities
#build_hash, #check_equality, #json_array, #openstruct_to_json
Constructor Details
#initialize(type, value, media_type) ⇒ ED
Returns a new instance of ED.
359 360 361 362 363 |
# File 'lib/hqmf-model/types.rb', line 359 def initialize(type, value, media_type) @type = type || 'ED' @value = value @media_type = media_type end |
Instance Attribute Details
#media_type ⇒ Object
Returns the value of attribute media_type.
357 358 359 |
# File 'lib/hqmf-model/types.rb', line 357 def media_type @media_type end |
#type ⇒ Object
Returns the value of attribute type.
357 358 359 |
# File 'lib/hqmf-model/types.rb', line 357 def type @type end |
#value ⇒ Object
Returns the value of attribute value.
357 358 359 |
# File 'lib/hqmf-model/types.rb', line 357 def value @value end |
Class Method Details
Instance Method Details
#==(other) ⇒ Object
374 375 376 |
# File 'lib/hqmf-model/types.rb', line 374 def ==(other) check_equality(self,other) end |
#to_json ⇒ Object
370 371 372 |
# File 'lib/hqmf-model/types.rb', line 370 def to_json build_hash(self, [:type, :value, :media_type]) end |