Module: Conekta::Operations::CustomAction
- Included in:
- Card, Charge, Customer, Payee, PayoutMethod, Plan, Subscription
- Defined in:
- lib/conekta/operations/custom_action.rb
Instance Method Summary collapse
Instance Method Details
#custom_action(method, action = nil, params = nil) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/conekta/operations/custom_action.rb', line 4 def custom_action(method, action=nil, params=nil) url = action ? [self.url, action].join('/') : self.url response = Requestor.new.request(method, url, params) self.load_from(response) self end |