Sha256: 9d0e0cc0eb1e5ef84a70eb912c58e6ef6f794e4ca12fd7a77894e4943cbdb11c

Contents?: true

Size: 387 Bytes

Versions: 5

Compression:

Stored size: 387 Bytes

Contents

module Ebanx
  module Command
    class Token < Command
      def initialize(params)
        @params         = params
        @request_method = :post
        @request_action = 'token'
        @response_type  = :json
        @request_body   = true
      end

      def validate
        validate_presence :payment_type_code
        validate_presence :creditcard
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ebanx-1.3.1 lib/ebanx/command/token.rb
ebanx-1.3.0 lib/ebanx/command/token.rb
ebanx-1.2.0 lib/ebanx/command/token.rb
ebanx-1.1.0 lib/ebanx/command/token.rb
ebanx-1.0.2 lib/ebanx/command/token.rb