Class: Lol::Model

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

Direct Known Subclasses

Champion, Game, Player, Statistic

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Lol::Model

Initializes a Lol::Model

Parameters:

  • options (Hash) (defaults to: {})


8
9
10
11
12
13
# File 'lib/lol/model.rb', line 8

def initialize options = {}
  @raw = options
  options.each do |attribute_name, value|
    send "#{attribute_name.to_s.underscore}=", value
  end
end