class Paid::RefundList
Attributes
parent_id[RW]
Public Class Methods
new(json={}, api_method=nil, parent_id=nil)
click to toggle source
# File lib/paid/refund_list.rb, line 5 def initialize(json={}, api_method=nil, parent_id=nil) @klass = Util.constantize(:Transaction) @parent_id = parent_id refresh_from(json, api_method) end
Public Instance Methods
create(params={}, headers={})
click to toggle source
Not live on the server yet. def all(params={}, headers={})
method = APIMethod.new(:get, "/transactions/:parent_id/refunds", params, headers, self) APIList.new(:Transaction, method.execute, method)
end
# File lib/paid/refund_list.rb, line 17 def create(params={}, headers={}) method = APIMethod.new(:post, "/transactions/:parent_id/refunds", params, headers, self) Util.constantize(:Transaction).new(method.execute, method) end