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