Class: Joule::SRM::Properties

Inherits:
Object
  • Object
show all
Defined in:
lib/joule/srm/properties.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#block_countObject

Returns the value of attribute block_count.



4
5
6
# File 'lib/joule/srm/properties.rb', line 4

def block_count
  @block_count
end

#commentObject

Returns the value of attribute comment.



4
5
6
# File 'lib/joule/srm/properties.rb', line 4

def comment
  @comment
end

#identObject

Returns the value of attribute ident.



4
5
6
# File 'lib/joule/srm/properties.rb', line 4

def ident
  @ident
end

#marker_countObject

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_countObject

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_denominatorObject

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_numeratorObject

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

#slopeObject

Returns the value of attribute slope.



4
5
6
# File 'lib/joule/srm/properties.rb', line 4

def slope
  @slope
end

#srm_dateObject

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_timeObject

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_sizeObject

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_offsetObject

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

#dateObject



12
13
14
# File 'lib/joule/srm/properties.rb', line 12

def date
  Date.new(1880,1,1) + self.srm_date
end

#date_timeObject



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_intervalObject



8
9
10
# File 'lib/joule/srm/properties.rb', line 8

def record_interval 
  return self.record_interval_numerator/self.record_interval_denominator
end