class Paymill::Invoice
Attributes
billing_date[RW]
brutto[RW]
currency[RW]
invoice_nr[RW]
invoice_type[RW]
last_reminder_date[RW]
netto[RW]
period_from[RW]
period_until[RW]
status[RW]
vat_rate[RW]
Public Class Methods
new( json )
click to toggle source
# File lib/paymill/models/invoice.rb, line 7 def initialize( json ) json.each_pair do |key, value| instance_variable_set( "@#{key}", ( Integer( value ) rescue value ) ) end @period_from &&= Time.at( @period_from ) @period_until &&= Time.at( @period_until ) @billing_date &&= Time.at( @billing_date ) @last_reminder_date &&= Time.at( @last_reminder_date ) end