Module: QuakeliveApi::Items::Structurable

Included in:
Award, Competitor, Favourite, Model, RecentGame, Record, Weapon
Defined in:
lib/quakelive_api/items/structurable.rb

Instance Method Summary collapse

Instance Method Details

#initialize(*args) ⇒ Object



5
6
7
8
9
# File 'lib/quakelive_api/items/structurable.rb', line 5

def initialize(*args)
  opts = args.last.is_a?(Hash) ? args.pop : {}
  super(*args)
  opts.each { |k, v| send("#{k}=", v) }
end