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.
385 386 387 388 389 |
# File 'lib/hqmf-model/types.rb', line 385 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.
383 384 385 |
# File 'lib/hqmf-model/types.rb', line 383 def media_type @media_type end |
#type ⇒ Object
Returns the value of attribute type.
383 384 385 |
# File 'lib/hqmf-model/types.rb', line 383 def type @type end |
#value ⇒ Object
Returns the value of attribute value.
383 384 385 |
# File 'lib/hqmf-model/types.rb', line 383 def value @value end |
Class Method Details
Instance Method Details
#==(other) ⇒ Object
400 401 402 |
# File 'lib/hqmf-model/types.rb', line 400 def ==(other) check_equality(self,other) end |
#to_json ⇒ Object
396 397 398 |
# File 'lib/hqmf-model/types.rb', line 396 def to_json build_hash(self, [:type, :value, :media_type]) end |