Class: RiotLolApi::Model::FellowPlayer

Inherits:
Object
  • Object
show all
Defined in:
lib/riot_lol_api/model/fellow_players.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ FellowPlayer

Returns a new instance of FellowPlayer.



5
6
7
8
9
10
# File 'lib/riot_lol_api/model/fellow_players.rb', line 5

def initialize(options = {})
  options.each do |key, value|
    self.class.send(:attr_accessor, key.to_sym)
    instance_variable_set("@#{key}", value)
  end
end