Class: Pingpp::Refund

Inherits:
APIResource show all
Extended by:
APIOperations::Create, APIOperations::List
Defined in:
lib/pingpp/refund.rb

Class Method Summary collapse

Methods included from APIOperations::Create

create

Methods included from APIOperations::List

list

Methods inherited from APIResource

class_name, object_name, #refresh, resource_url, #resource_url, uri_object_name

Methods included from APIOperations::Request

included

Methods inherited from PingppObject

#==, #[], #[]=, #_dump, _load, #as_json, construct_from, #each, #initialize, #inspect, #keys, #refresh_from, #respond_to?, #serialize_params, #to_hash, #to_json, #to_s, #values

Constructor Details

This class inherits a constructor from Pingpp::PingppObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Pingpp::PingppObject

Class Method Details

.create(charge, params, opts = {}) ⇒ Object



11
12
13
14
# File 'lib/pingpp/refund.rb', line 11

def self.create(charge, params, opts={})
  opts[:parents] = ['charges', charge]
  super(params, opts)
end

.list(charge, filters = {}, opts = {}) ⇒ Object



16
17
18
19
# File 'lib/pingpp/refund.rb', line 16

def self.list(charge, filters={}, opts={})
  opts[:parents] = ['charges', charge]
  super(filters, opts)
end

.retrieve(charge, id, opts = {}) ⇒ Object



6
7
8
9
# File 'lib/pingpp/refund.rb', line 6

def self.retrieve(charge, id, opts={})
  opts[:parents] = ['charges', charge]
  super(id, opts)
end