Class: OvercastAPI::Rank
- Inherits:
-
Object
- Object
- OvercastAPI::Rank
- Defined in:
- lib/overcast_api.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
readonly
Returns the value of attribute color.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, color) ⇒ Rank
constructor
A new instance of Rank.
Constructor Details
#initialize(name, color) ⇒ Rank
Returns a new instance of Rank.
151 152 153 154 |
# File 'lib/overcast_api.rb', line 151 def initialize(name, color) @name = name @color = color end |
Instance Attribute Details
#color ⇒ Object (readonly)
Returns the value of attribute color.
150 151 152 |
# File 'lib/overcast_api.rb', line 150 def color @color end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
149 150 151 |
# File 'lib/overcast_api.rb', line 149 def name @name end |