Class: YDIM::Invoice::Info
- Inherits:
-
Object
- Object
- YDIM::Invoice::Info
- Defined in:
- lib/ydim/invoice.rb
Constant Summary collapse
- KEYS =
[:unique_id, :date, :description, :payment_received, :currency, :status, :debitor_name, :debitor_email, :debitor_id, :due_date, :total_netto, :total_brutto, :deleted, :suppress_vat ]
Instance Method Summary collapse
-
#initialize(invoice) ⇒ Info
constructor
A new instance of Info.
Constructor Details
#initialize(invoice) ⇒ Info
18 19 20 21 22 |
# File 'lib/ydim/invoice.rb', line 18 def initialize(invoice) KEYS.each { |key| instance_variable_set("@#{key}", invoice.send(key)) } end |