Class: RiotLolApi::Model::Recommended

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

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Recommended

Returns a new instance of Recommended.



7
8
9
10
11
12
# File 'lib/riot_lol_api/model/recommendeds.rb', line 7

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