Sha256: 79a5c9c370763d0fec9804bd9ac9f67dcd7d850c45db1a23f79ca3f112d9bd44

Contents?: true

Size: 511 Bytes

Versions: 7

Compression:

Stored size: 511 Bytes

Contents

module Ebanx
  module Command
    class Request < Command
      def initialize(params)
        @params         = params
        @request_method = :post
        @request_action = 'request'
        @response_type  = :json
      end

      def validate
        validate_presence :currency_code
        validate_presence :amount
        validate_presence :merchant_payment_code
        validate_presence :name
        validate_presence :email
        validate_presence :payment_type_code
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ebanx-1.3.1 lib/ebanx/command/request.rb
ebanx-1.3.0 lib/ebanx/command/request.rb
ebanx-1.2.0 lib/ebanx/command/request.rb
ebanx-1.1.0 lib/ebanx/command/request.rb
ebanx-1.0.2 lib/ebanx/command/request.rb
ebanx-1.0.0 lib/ebanx/command/request.rb
ebanx-0.1.0 lib/ebanx/command/request.rb