Class: RubyTDMS::Property

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_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.



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

#dataObject

TDMS::DataTypes::Base



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

def data
  @data
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/ruby_tdms/property.rb', line 3

def name
  @name
end

Instance Method Details

#valueObject



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

def value
	data.value
end