Class: HQMF::Reference
- Inherits:
-
Object
- Object
- HQMF::Reference
- Includes:
- Conversion::Utilities
- Defined in:
- lib/hqmf-model/types.rb
Overview
Represents a HQMF reference from a precondition to a data criteria
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(id) ⇒ Reference
constructor
Create a new HQMF::Reference.
- #to_json ⇒ Object
Methods included from Conversion::Utilities
#build_hash, #check_equality, #json_array, #openstruct_to_json
Constructor Details
#initialize(id) ⇒ Reference
Create a new HQMF::Reference
341 342 343 |
# File 'lib/hqmf-model/types.rb', line 341 def initialize(id) @id = id end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
337 338 339 |
# File 'lib/hqmf-model/types.rb', line 337 def id @id end |
Instance Method Details
#==(other) ⇒ Object
349 350 351 |
# File 'lib/hqmf-model/types.rb', line 349 def ==(other) check_equality(self,other) end |
#to_json ⇒ Object
345 346 347 |
# File 'lib/hqmf-model/types.rb', line 345 def to_json @id end |