Class: Rubyoverflow::BadgeCounts

Inherits:
Object
  • Object
show all
Defined in:
lib/rubyoverflow/badgeCounts.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash, request_path = '') ⇒ BadgeCounts

Returns a new instance of BadgeCounts.



8
9
10
11
12
13
# File 'lib/rubyoverflow/badgeCounts.rb', line 8

def initialize(hash, request_path = '')
  dash = BadgeCountsDash.new hash
  @gold = dash.gold
  @silver = dash.silver
  @bronze = dash.bronze
end

Instance Attribute Details

#bronzeObject (readonly)

Returns the value of attribute bronze.



6
7
8
# File 'lib/rubyoverflow/badgeCounts.rb', line 6

def bronze
  @bronze
end

#goldObject (readonly)

Returns the value of attribute gold.



4
5
6
# File 'lib/rubyoverflow/badgeCounts.rb', line 4

def gold
  @gold
end

#silverObject (readonly)

Returns the value of attribute silver.



5
6
7
# File 'lib/rubyoverflow/badgeCounts.rb', line 5

def silver
  @silver
end