Class: Braspag::Merchant

Inherits:
Object
  • Object
show all
Defined in:
lib/braspag/merchant.rb

Overview

Merchant identification on Braspag

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(merchant_id, merchant_key) ⇒ Merchant

Returns a new instance of Merchant.

Parameters:

  • merchant_id (String)

    the merchant identification number

  • merchant_key (String)

    the merchant identification key



12
13
14
15
# File 'lib/braspag/merchant.rb', line 12

def initialize(merchant_id, merchant_key)
    @merchant_id = merchant_id
    @merchant_key = merchant_key
end

Instance Attribute Details

#merchant_idString

the merchant identification number

Returns:

  • (String)

    the current value of merchant_id



6
7
8
# File 'lib/braspag/merchant.rb', line 6

def merchant_id
  @merchant_id
end

#merchant_keyString

the merchant identification key

Returns:

  • (String)

    the current value of merchant_key



6
7
8
# File 'lib/braspag/merchant.rb', line 6

def merchant_key
  @merchant_key
end