Class: Sappy::Statistics::Daily
- Inherits:
-
Object
- Object
- Sappy::Statistics::Daily
- Defined in:
- lib/sappy/statistics/daily.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 = {}) ⇒ Daily
constructor
A new instance of Daily.
Constructor Details
#initialize(attributes = {}) ⇒ Daily
Returns a new instance of Daily.
6 7 8 9 10 11 12 |
# File 'lib/sappy/statistics/daily.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/daily.rb', line 4 def checks @checks end |
#failures ⇒ Object (readonly)
Returns the value of attribute failures.
4 5 6 |
# File 'lib/sappy/statistics/daily.rb', line 4 def failures @failures end |
#timezone ⇒ Object (readonly)
Returns the value of attribute timezone.
4 5 6 |
# File 'lib/sappy/statistics/daily.rb', line 4 def timezone @timezone end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
4 5 6 |
# File 'lib/sappy/statistics/daily.rb', line 4 def total @total end |
#uptime ⇒ Object (readonly)
Returns the value of attribute uptime.
4 5 6 |
# File 'lib/sappy/statistics/daily.rb', line 4 def uptime @uptime end |