Class: RubyTDMS::Property
- Inherits:
-
Object
- Object
- RubyTDMS::Property
- Defined in:
- lib/ruby_tdms/property.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
TDMS::DataTypes::Base.
-
#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.
6 7 8 9 |
# File 'lib/ruby_tdms/property.rb', line 6 def initialize(name = nil, data = nil) @name = name @data = data end |
Instance Attribute Details
#data ⇒ Object
TDMS::DataTypes::Base
4 5 6 |
# File 'lib/ruby_tdms/property.rb', line 4 def data @data end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/ruby_tdms/property.rb', line 3 def name @name end |
Instance Method Details
#value ⇒ Object
12 13 14 |
# File 'lib/ruby_tdms/property.rb', line 12 def value data.value end |