class ActivePayment::Models::Payable

Attributes

amount[RW]
class[RW]
currency[RW]
description[RW]
external_id[RW]
id[RW]
number[RW]
quantity[RW]
reference_number[RW]
shipping[RW]
tax[RW]

Public Class Methods

new(params = {}) click to toggle source
# File lib/active_payment/models/payable.rb, line 11
def initialize(params = {})
  @tax = 0
  @shipping = 0
  @number = 1
  @quantity = 1
  @currency = 'USD'

  params.each { |key, value| send "#{key}=", value }
end