Class: Joule::SRM::Properties
- Inherits:
-
Object
- Object
- Joule::SRM::Properties
- Defined in:
- lib/joule/srm/properties.rb
Instance Attribute Summary collapse
-
#block_count ⇒ Object
Returns the value of attribute block_count.
-
#comment ⇒ Object
Returns the value of attribute comment.
-
#ident ⇒ Object
Returns the value of attribute ident.
-
#marker_count ⇒ Object
Returns the value of attribute marker_count.
-
#record_count ⇒ Object
Returns the value of attribute record_count.
-
#record_interval_denominator ⇒ Object
Returns the value of attribute record_interval_denominator.
-
#record_interval_numerator ⇒ Object
Returns the value of attribute record_interval_numerator.
-
#slope ⇒ Object
Returns the value of attribute slope.
-
#srm_date ⇒ Object
Returns the value of attribute srm_date.
-
#start_date_time ⇒ Object
Returns the value of attribute start_date_time.
-
#wheel_size ⇒ Object
Returns the value of attribute wheel_size.
-
#zero_offset ⇒ Object
Returns the value of attribute zero_offset.
Instance Method Summary collapse
Instance Attribute Details
#block_count ⇒ Object
Returns the value of attribute block_count.
4 5 6 |
# File 'lib/joule/srm/properties.rb', line 4 def block_count @block_count end |
#comment ⇒ Object
Returns the value of attribute comment.
4 5 6 |
# File 'lib/joule/srm/properties.rb', line 4 def comment @comment end |
#ident ⇒ Object
Returns the value of attribute ident.
4 5 6 |
# File 'lib/joule/srm/properties.rb', line 4 def ident @ident end |
#marker_count ⇒ Object
Returns the value of attribute marker_count.
4 5 6 |
# File 'lib/joule/srm/properties.rb', line 4 def marker_count @marker_count end |
#record_count ⇒ Object
Returns the value of attribute record_count.
4 5 6 |
# File 'lib/joule/srm/properties.rb', line 4 def record_count @record_count end |
#record_interval_denominator ⇒ Object
Returns the value of attribute record_interval_denominator.
4 5 6 |
# File 'lib/joule/srm/properties.rb', line 4 def record_interval_denominator @record_interval_denominator end |
#record_interval_numerator ⇒ Object
Returns the value of attribute record_interval_numerator.
4 5 6 |
# File 'lib/joule/srm/properties.rb', line 4 def record_interval_numerator @record_interval_numerator end |
#slope ⇒ Object
Returns the value of attribute slope.
4 5 6 |
# File 'lib/joule/srm/properties.rb', line 4 def slope @slope end |
#srm_date ⇒ Object
Returns the value of attribute srm_date.
4 5 6 |
# File 'lib/joule/srm/properties.rb', line 4 def srm_date @srm_date end |
#start_date_time ⇒ Object
Returns the value of attribute start_date_time.
4 5 6 |
# File 'lib/joule/srm/properties.rb', line 4 def start_date_time @start_date_time end |
#wheel_size ⇒ Object
Returns the value of attribute wheel_size.
4 5 6 |
# File 'lib/joule/srm/properties.rb', line 4 def wheel_size @wheel_size end |
#zero_offset ⇒ Object
Returns the value of attribute zero_offset.
4 5 6 |
# File 'lib/joule/srm/properties.rb', line 4 def zero_offset @zero_offset end |
Instance Method Details
#date ⇒ Object
12 13 14 |
# File 'lib/joule/srm/properties.rb', line 12 def date Date.new(1880,1,1) + self.srm_date end |
#date_time ⇒ Object
24 25 26 |
# File 'lib/joule/srm/properties.rb', line 24 def date_time self.start_date_time end |
#date_time=(time) ⇒ Object
20 21 22 |
# File 'lib/joule/srm/properties.rb', line 20 def date_time=(time) self.start_date_time = Time.mktime(self.date.year.to_i, self.date.month.to_i, self.date.day.to_i) + time end |
#record_interval ⇒ Object
8 9 10 |
# File 'lib/joule/srm/properties.rb', line 8 def record_interval return self.record_interval_numerator/self.record_interval_denominator end |