Class: OvercastAPI::Rank

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#colorObject (readonly)

Returns the value of attribute color.



150
151
152
# File 'lib/overcast_api.rb', line 150

def color
  @color
end

#nameObject (readonly)

Returns the value of attribute name.



149
150
151
# File 'lib/overcast_api.rb', line 149

def name
  @name
end