Class: Cielo::API30::Merchant

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

Overview

Merchant identification on Cielo

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



13
14
15
16
# File 'lib/cielo/api30/merchant.rb', line 13

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



7
8
9
# File 'lib/cielo/api30/merchant.rb', line 7

def merchant_id
  @merchant_id
end

#merchant_keyString

the merchant identification key

Returns:

  • (String)

    the current value of merchant_key



7
8
9
# File 'lib/cielo/api30/merchant.rb', line 7

def merchant_key
  @merchant_key
end