Sha256: 7d911a22e61c307a08bf93fa9f75c04e032fc39a0428b80971fbcf3de6a15999
Contents?: true
Size: 766 Bytes
Versions: 7
Compression:
Stored size: 766 Bytes
Contents
module Recurly class Charge < Base self.element_name = "charge" self.prefix = "/accounts/:account_code/" def self.known_attributes [ "account_code", "amount_in_cents", "start_date", "end_date", "description", "created_at" ] end def self.list(account_code, status = :all) params = {:account_code => account_code} if status != :all params[:show] = status.to_s end find(:all, :params => params) end def self.lookup(account_code, id) find(id, :params => { :account_code => account_code }) end # def destroy # reload # return false if respond_to?(:invoice_id) and invoice_id.present? # super # end end end
Version data entries
7 entries across 7 versions & 1 rubygems