Class: SunatInvoice::Model

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

Direct Known Subclasses

Invoice, Item, Signature, Tax, Tributer

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Model

Returns a new instance of Model.



5
6
7
8
9
# File 'lib/sunat_invoice/model.rb', line 5

def initialize(options = {})
  options.each do |key, value|
    send("#{key}=", value) if respond_to?("#{key}=")
  end
end