Module: FipeApi::ObjetoComConstrutor

Included in:
Ano, Marca, Modelo, Valor
Defined in:
lib/fipeapi/objeto_com_construtor.rb

Instance Method Summary collapse

Instance Method Details

#initialize(opts = {}) ⇒ Object



3
4
5
6
7
# File 'lib/fipeapi/objeto_com_construtor.rb', line 3

def initialize(opts = {})
  opts.keys.each do |key|
    self.send("#{key}=", opts[key])
  end
end