Sha256: 8995db1b83449cefe0d220caf01899114862dc63978577e765c33a33adaafd5c

Contents?: true

Size: 388 Bytes

Versions: 46

Compression:

Stored size: 388 Bytes

Contents

class Kaui::Charge < Kaui::Base

  define_attr :account_id
  define_attr :invoice_id
  define_attr :amount
  define_attr :description

  def initialize(data = {})
    super(:account_id => data['accountId'] || data['account_id'],
          :invoice_id => data['invoiceId'] || data['invoice_id'],
          :amount => data['amount'],
          :description => data['description'])
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
kaui-0.6.6 app/models/kaui/charge.rb
kaui-0.6.5 app/models/kaui/charge.rb
kaui-0.6.4 app/models/kaui/charge.rb
kaui-0.6.3 app/models/kaui/charge.rb
kaui-0.6.2 app/models/kaui/charge.rb
kaui-0.6.1 app/models/kaui/charge.rb
kaui-0.6.0 app/models/kaui/charge.rb
kaui-0.5.3 app/models/kaui/charge.rb
kaui-0.5.2 app/models/kaui/charge.rb
kaui-0.5.1 app/models/kaui/charge.rb
kaui-0.5.0 app/models/kaui/charge.rb
kaui-0.4.9 app/models/kaui/charge.rb
kaui-0.4.8 app/models/kaui/charge.rb
kaui-0.4.7 app/models/kaui/charge.rb
kaui-0.4.6 app/models/kaui/charge.rb
kaui-0.4.5 app/models/kaui/charge.rb
kaui-0.4.4 app/models/kaui/charge.rb
kaui-0.4.3 app/models/kaui/charge.rb
kaui-0.4.2 app/models/kaui/charge.rb
kaui-0.4.1 app/models/kaui/charge.rb