Module: Conekta::Operations::CustomAction

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