Class: Clashinator::BadgeUrl
- Inherits:
-
Object
- Object
- Clashinator::BadgeUrl
- Defined in:
- lib/clashinator/badge_url.rb
Overview
This class represents the BadgeUrl model
Instance Attribute Summary collapse
-
#large ⇒ Object
Returns the value of attribute large.
-
#medium ⇒ Object
Returns the value of attribute medium.
-
#small ⇒ Object
Returns the value of attribute small.
-
#tiny ⇒ Object
Returns the value of attribute tiny.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ BadgeUrl
constructor
A new instance of BadgeUrl.
Constructor Details
#initialize(attributes) ⇒ BadgeUrl
Returns a new instance of BadgeUrl.
6 7 8 9 10 11 |
# File 'lib/clashinator/badge_url.rb', line 6 def initialize(attributes) @tiny = attributes['tiny'] @small = attributes['small'] @medium = attributes['medium'] @large = attributes['large'] end |
Instance Attribute Details
#large ⇒ Object
Returns the value of attribute large.
4 5 6 |
# File 'lib/clashinator/badge_url.rb', line 4 def large @large end |
#medium ⇒ Object
Returns the value of attribute medium.
4 5 6 |
# File 'lib/clashinator/badge_url.rb', line 4 def medium @medium end |
#small ⇒ Object
Returns the value of attribute small.
4 5 6 |
# File 'lib/clashinator/badge_url.rb', line 4 def small @small end |
#tiny ⇒ Object
Returns the value of attribute tiny.
4 5 6 |
# File 'lib/clashinator/badge_url.rb', line 4 def tiny @tiny end |