Class: Moip2::RefundApi
- Inherits:
-
Object
- Object
- Moip2::RefundApi
- Defined in:
- lib/moip2/refund_api.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
- #base_path(id) ⇒ Object
- #create(id, refund = {}) ⇒ Object
-
#initialize(client) ⇒ RefundApi
constructor
A new instance of RefundApi.
- #show(id) ⇒ Object
Constructor Details
#initialize(client) ⇒ RefundApi
Returns a new instance of RefundApi.
5 6 7 |
# File 'lib/moip2/refund_api.rb', line 5 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
3 4 5 |
# File 'lib/moip2/refund_api.rb', line 3 def client @client end |
Instance Method Details
#base_path(id) ⇒ Object
9 10 11 |
# File 'lib/moip2/refund_api.rb', line 9 def base_path(id) "/v2/#{base_resource(id)}/#{id}/refunds" end |