Class: Sappy::Statistics::Annual
- Inherits:
-
Object
- Object
- Sappy::Statistics::Annual
- Defined in:
- lib/sappy/statistics/annual.rb
Instance Attribute Summary collapse
-
#checks ⇒ Object
readonly
Returns the value of attribute checks.
-
#failures ⇒ Object
readonly
Returns the value of attribute failures.
-
#timezone ⇒ Object
readonly
Returns the value of attribute timezone.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
-
#uptime ⇒ Object
readonly
Returns the value of attribute uptime.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Annual
constructor
A new instance of Annual.
Constructor Details
#initialize(attributes = {}) ⇒ Annual
Returns a new instance of Annual.
6 7 8 9 10 11 12 |
# File 'lib/sappy/statistics/annual.rb', line 6 def initialize(attributes = {}) @checks = attributes['numchecks'] @failures = attributes['numfailures'] @timezone = attributes['timezone'] @total = attributes['total'] @uptime = attributes['uptime'] end |
Instance Attribute Details
#checks ⇒ Object (readonly)
Returns the value of attribute checks.
4 5 6 |
# File 'lib/sappy/statistics/annual.rb', line 4 def checks @checks end |
#failures ⇒ Object (readonly)
Returns the value of attribute failures.
4 5 6 |
# File 'lib/sappy/statistics/annual.rb', line 4 def failures @failures end |
#timezone ⇒ Object (readonly)
Returns the value of attribute timezone.
4 5 6 |
# File 'lib/sappy/statistics/annual.rb', line 4 def timezone @timezone end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
4 5 6 |
# File 'lib/sappy/statistics/annual.rb', line 4 def total @total end |
#uptime ⇒ Object (readonly)
Returns the value of attribute uptime.
4 5 6 |
# File 'lib/sappy/statistics/annual.rb', line 4 def uptime @uptime end |