Class: Tdms::Property

Inherits:
Object
  • Object
show all
Defined in:
lib/tdms/property.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject

tdms::data_type



5
6
7
# File 'lib/tdms/property.rb', line 5

def data
  @data
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/tdms/property.rb', line 4

def name
  @name
end

Instance Method Details

#valueObject



12
13
14
# File 'lib/tdms/property.rb', line 12

def value
  data.value
end