Sha256: dc7ef39fb2238e92473315f3078aa3997eb6836200397a0ca2366aa428c57fe0

Contents?: true

Size: 323 Bytes

Versions: 12

Compression:

Stored size: 323 Bytes

Contents

module Conekta
  module Operations
    module CustomAction
      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
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
conekta-2.6.0 lib/conekta/operations/custom_action.rb
conekta-tiempometa-2.4.2 lib/conekta/operations/custom_action.rb
conekta-2.5.0 lib/conekta/operations/custom_action.rb
conekta-2.4.2 lib/conekta/operations/custom_action.rb
conekta-2.4.1 lib/conekta/operations/custom_action.rb
conekta-2.4.0 lib/conekta/operations/custom_action.rb
conekta-2.3.0 lib/conekta/operations/custom_action.rb
conekta-2.0.0 lib/conekta/operations/custom_action.rb
conekta-1.1.3 lib/conekta/operations/custom_action.rb
conekta-1.1.2 lib/conekta/operations/custom_action.rb
conekta-1.1.1 lib/conekta/operations/custom_action.rb
conekta-1.1.0 lib/conekta/operations/custom_action.rb