Class: LMC::Configstates
- Inherits:
-
Object
- Object
- LMC::Configstates
- Defined in:
- lib/lmc/Configstates.rb
Instance Attribute Summary collapse
-
#actual ⇒ Object
readonly
Returns the value of attribute actual.
-
#outdated ⇒ Object
readonly
Returns the value of attribute outdated.
Instance Method Summary collapse
-
#initialize(data) ⇒ Configstates
constructor
A new instance of Configstates.
Constructor Details
#initialize(data) ⇒ Configstates
Returns a new instance of Configstates.
7 8 9 10 11 12 |
# File 'lib/lmc/Configstates.rb', line 7 def initialize(data) @actual = data['ACTUAL'] @outdated = data['OUTDATED'] @actual ||= 0 @outdated ||= 0 end |
Instance Attribute Details
#actual ⇒ Object (readonly)
Returns the value of attribute actual.
5 6 7 |
# File 'lib/lmc/Configstates.rb', line 5 def actual @actual end |
#outdated ⇒ Object (readonly)
Returns the value of attribute outdated.
5 6 7 |
# File 'lib/lmc/Configstates.rb', line 5 def outdated @outdated end |