Class: Nemweb::DataRecord
- Inherits:
-
Struct
- Object
- Struct
- Nemweb::DataRecord
- Defined in:
- lib/nemweb/data_record.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#subtype ⇒ Object
Returns the value of attribute subtype.
-
#type ⇒ Object
Returns the value of attribute type.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
3 4 5 |
# File 'lib/nemweb/data_record.rb', line 3 def data @data end |
#subtype ⇒ Object
Returns the value of attribute subtype
3 4 5 |
# File 'lib/nemweb/data_record.rb', line 3 def subtype @subtype end |
#type ⇒ Object
Returns the value of attribute type
3 4 5 |
# File 'lib/nemweb/data_record.rb', line 3 def type @type end |
#version ⇒ Object
Returns the value of attribute version
3 4 5 |
# File 'lib/nemweb/data_record.rb', line 3 def version @version end |
Instance Method Details
#to_h ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/nemweb/data_record.rb', line 5 def to_h { "type" => type, "subtype" => subtype, "version" => version, "data" => data } end |