Module: Conekta::Operations::CustomAction
- Included in:
- Card, Charge, Customer, Destination, DiscountLine, FiscalEntity, LineItem, Conekta::Order, Payee, PaymentSource, PayoutMethod, Plan, ShippingContact, ShippingLine, Subscription, TaxLine, Webhook
- 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 |