Class: Pingpp::Charge
- Inherits:
-
APIResource
- Object
- PingppObject
- APIResource
- Pingpp::Charge
- Extended by:
- APIOperations::Create, APIOperations::List
- Defined in:
- lib/pingpp/charge.rb
Class Method Summary collapse
Methods included from APIOperations::Create
Methods included from APIOperations::List
Methods inherited from APIResource
class_name, object_name, #refresh, resource_url, #resource_url, retrieve, uri_object_name
Methods included from APIOperations::Request
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
.reverse(id, opts = {}) ⇒ Object
6 7 8 9 10 |
# File 'lib/pingpp/charge.rb', line 6 def self.reverse(id, opts={}) id, reverse_params = Util.normalize_id(id) response, opts = request(:post, "#{resource_url(opts)}/#{CGI.escape(id)}/reverse", reverse_params, opts) Util.convert_to_pingpp_object(response, opts) end |