Class: Tdms::Property
- Inherits:
-
Object
- Object
- Tdms::Property
- Defined in:
- lib/tdms/property.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
tdms::data_type.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name = nil, data = nil) ⇒ Property
constructor
A new instance of Property.
- #value ⇒ Object
Constructor Details
#initialize(name = nil, data = nil) ⇒ Property
Returns a new instance of Property.
7 8 9 10 |
# File 'lib/tdms/property.rb', line 7 def initialize(name=nil, data=nil) @name = name @data = data end |
Instance Attribute Details
#data ⇒ Object
tdms::data_type
5 6 7 |
# File 'lib/tdms/property.rb', line 5 def data @data end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/tdms/property.rb', line 4 def name @name end |
Instance Method Details
#value ⇒ Object
12 13 14 |
# File 'lib/tdms/property.rb', line 12 def value data.value end |