Class: Rubyoverflow::BadgeCounts
- Inherits:
-
Object
- Object
- Rubyoverflow::BadgeCounts
- Defined in:
- lib/rubyoverflow/badgeCounts.rb
Instance Attribute Summary collapse
-
#bronze ⇒ Object
readonly
Returns the value of attribute bronze.
-
#gold ⇒ Object
readonly
Returns the value of attribute gold.
-
#silver ⇒ Object
readonly
Returns the value of attribute silver.
Instance Method Summary collapse
-
#initialize(hash, request_path = '') ⇒ BadgeCounts
constructor
A new instance of BadgeCounts.
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
#bronze ⇒ Object (readonly)
Returns the value of attribute bronze.
6 7 8 |
# File 'lib/rubyoverflow/badgeCounts.rb', line 6 def bronze @bronze end |
#gold ⇒ Object (readonly)
Returns the value of attribute gold.
4 5 6 |
# File 'lib/rubyoverflow/badgeCounts.rb', line 4 def gold @gold end |
#silver ⇒ Object (readonly)
Returns the value of attribute silver.
5 6 7 |
# File 'lib/rubyoverflow/badgeCounts.rb', line 5 def silver @silver end |