Class: Sappy::Statistics::Annual

Inherits:
Object
  • Object
show all
Defined in:
lib/sappy/statistics/annual.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#checksObject (readonly)

Returns the value of attribute checks.



4
5
6
# File 'lib/sappy/statistics/annual.rb', line 4

def checks
  @checks
end

#failuresObject (readonly)

Returns the value of attribute failures.



4
5
6
# File 'lib/sappy/statistics/annual.rb', line 4

def failures
  @failures
end

#timezoneObject (readonly)

Returns the value of attribute timezone.



4
5
6
# File 'lib/sappy/statistics/annual.rb', line 4

def timezone
  @timezone
end

#totalObject (readonly)

Returns the value of attribute total.



4
5
6
# File 'lib/sappy/statistics/annual.rb', line 4

def total
  @total
end

#uptimeObject (readonly)

Returns the value of attribute uptime.



4
5
6
# File 'lib/sappy/statistics/annual.rb', line 4

def uptime
  @uptime
end