Sha256: 8162915130beef1ca61272dff3a78eda146a6ea6306e512e33e0fd9d447cbfa3

Contents?: true

Size: 315 Bytes

Versions: 10

Compression:

Stored size: 315 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

10 entries across 10 versions & 1 rubygems

Version Path
conekta-0.5.6 lib/conekta/operations/custom_action.rb
conekta-0.5.5 lib/conekta/operations/custom_action.rb
conekta-0.5.4 lib/conekta/operations/custom_action.rb
conekta-0.5.3 lib/conekta/operations/custom_action.rb
conekta-0.5.2 lib/conekta/operations/custom_action.rb
conekta-0.5.1 lib/conekta/operations/custom_action.rb
conekta-0.4.8 lib/conekta/operations/custom_action.rb
conekta-0.4.7 lib/conekta/operations/custom_action.rb
conekta-0.4.6 lib/conekta/operations/custom_action.rb
conekta-0.4.5 lib/conekta/operations/custom_action.rb