Class: Eeml::Value

Inherits:
Object show all
Defined in:
lib/eeml/environment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Value

Returns a new instance of Value.



89
90
91
92
93
94
# File 'lib/eeml/environment.rb', line 89

def initialize(options = {})
  @min_value = options[:min_value]
  @max_value = options[:max_value]
  @value = options[:value]
  @recorded_at = options[:recorded_at]
end

Instance Attribute Details

#max_valueObject

Returns the value of attribute max_value.



87
88
89
# File 'lib/eeml/environment.rb', line 87

def max_value
  @max_value
end

#min_valueObject

Returns the value of attribute min_value.



87
88
89
# File 'lib/eeml/environment.rb', line 87

def min_value
  @min_value
end

#recorded_atObject

Returns the value of attribute recorded_at.



87
88
89
# File 'lib/eeml/environment.rb', line 87

def recorded_at
  @recorded_at
end

#valueObject

Returns the value of attribute value.



87
88
89
# File 'lib/eeml/environment.rb', line 87

def value
  @value
end