Sha256: 34858e9f045883df85ac99b1303b6c8bb559b70c57781db2b44c60eeda2c4607

Contents?: true

Size: 344 Bytes

Versions: 14

Compression:

Stored size: 344 Bytes

Contents

module Recurly
  class Credit < RecurlyBase
    self.element_name = "credit"
    self.prefix = "/accounts/:account_code/"

    def self.list(account_code)
      find(:all, :params => { :account_code => account_code })
    end

    def self.lookup(account_code, id)
      find(id, :params => { :account_code => account_code })
    end

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
recurly-0.3.3 lib/recurly/credit.rb
recurly-0.3.2 lib/recurly/credit.rb
recurly-0.3.1 lib/recurly/credit.rb
recurly-0.3.0 lib/recurly/credit.rb
recurly-0.2.9 lib/recurly/credit.rb
recurly-0.2.8 lib/recurly/credit.rb
recurly-0.2.7 lib/recurly/credit.rb
recurly-0.2.6 lib/recurly/credit.rb
recurly-0.2.5 lib/recurly/credit.rb
recurly-0.2.4 lib/recurly/credit.rb
recurly-0.2.3 lib/recurly/credit.rb
recurly-0.2.2 lib/recurly/credit.rb
recurly-0.2.1 lib/recurly/credit.rb
recurly-0.2.0 lib/recurly/credit.rb