Class: Pingpp::Withdrawal

Inherits:
AppBasedResource show all
Extended by:
APIOperations::Create, APIOperations::List
Includes:
APIOperations::Update
Defined in:
lib/pingpp/withdrawal.rb

Class Method Summary collapse

Methods included from APIOperations::Create

create

Methods included from APIOperations::List

list

Methods included from APIOperations::Update

included, #save

Methods inherited from AppBasedResource

resource_url

Methods inherited from APIResource

class_name, object_name, #refresh, resource_url, #resource_url, retrieve, 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

.cancel(id, opts = {}) ⇒ Object



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

def self.cancel(id, opts={})
  update(id, {:status => 'canceled'}, opts)
end

.confirm(id, opts = {}) ⇒ Object



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

def self.confirm(id, opts={})
  update(id, {:status => 'pending'}, opts)
end