Class: OvercastAPI::Trophy
- Inherits:
-
Object
- Object
- OvercastAPI::Trophy
- Defined in:
- lib/overcast_api.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#icon ⇒ Object
readonly
The FontAwesome icon.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, description, icon) ⇒ Trophy
constructor
A new instance of Trophy.
Constructor Details
#initialize(name, description, icon) ⇒ Trophy
Returns a new instance of Trophy.
161 162 163 164 165 |
# File 'lib/overcast_api.rb', line 161 def initialize(name, description, icon) @name = name @description = description @icon = icon end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
159 160 161 |
# File 'lib/overcast_api.rb', line 159 def description @description end |
#icon ⇒ Object (readonly)
The FontAwesome icon
160 161 162 |
# File 'lib/overcast_api.rb', line 160 def icon @icon end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
158 159 160 |
# File 'lib/overcast_api.rb', line 158 def name @name end |