Class: Sappy::Statistics::Monthly

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#checksObject (readonly)

Returns the value of attribute checks.



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

def checks
  @checks
end

#failuresObject (readonly)

Returns the value of attribute failures.



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

def failures
  @failures
end

#monthObject (readonly)

Returns the value of attribute month.



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

def month
  @month
end

#timezoneObject (readonly)

Returns the value of attribute timezone.



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

def timezone
  @timezone
end

#totalObject (readonly)

Returns the value of attribute total.



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

def total
  @total
end

#uptimeObject (readonly)

Returns the value of attribute uptime.



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

def uptime
  @uptime
end

#yearObject (readonly)

Returns the value of attribute year.



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

def year
  @year
end