Class: Frame::Charge
- Inherits:
-
APIResource
- Object
- FrameObject
- APIResource
- Frame::Charge
- Defined in:
- lib/frame/resources/charge.rb
Constant Summary collapse
- OBJECT_NAME =
"charge"
Instance Attribute Summary
Attributes inherited from FrameObject
Class Method Summary collapse
Methods inherited from APIResource
class_name, #refresh, resource_url, #resource_url
Methods included from APIOperations::Request
Methods inherited from FrameObject
#[], #[]=, construct_from, #each, #initialize, #initialize_from, #inspect, #keys, #serialize_params, #to_hash, #to_s, #update_attributes, #values
Constructor Details
This class inherits a constructor from Frame::FrameObject
Class Method Details
.object_name ⇒ Object
7 8 9 |
# File 'lib/frame/resources/charge.rb', line 7 def self.object_name OBJECT_NAME end |
.retrieve(id, opts = {}) ⇒ Object
11 12 13 |
# File 'lib/frame/resources/charge.rb', line 11 def self.retrieve(id, opts = {}) request_object(:get, "/v1/charges/#{CGI.escape(id)}", {}, opts) end |
.trace(id, opts = {}) ⇒ Object
15 16 17 |
# File 'lib/frame/resources/charge.rb', line 15 def self.trace(id, opts = {}) request_object(:get, "/v1/charges/#{CGI.escape(id)}/trace", {}, opts) end |