Class: RiotLolApi::Model::Team
- Inherits:
-
Object
- Object
- RiotLolApi::Model::Team
- Defined in:
- lib/riot_lol_api/model/teams.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Team
constructor
A new instance of Team.
- #win? ⇒ Boolean
Constructor Details
#initialize(options = {}) ⇒ Team
Returns a new instance of Team.
5 6 7 8 9 10 |
# File 'lib/riot_lol_api/model/teams.rb', line 5 def initialize( = {}) .each do |key, value| self.class.send(:attr_accessor, key.to_sym) instance_variable_set("@#{key}", value) end end |
Instance Method Details
#win? ⇒ Boolean
12 13 14 |
# File 'lib/riot_lol_api/model/teams.rb', line 12 def win? self.winner end |