Class: IpagosRubySdk::Configuration

Inherits:
Struct
  • Object
show all
Defined in:
lib/ipagos_ruby_sdk/types.rb

Overview

Configuración (Equivale a IpagosConfig.php) Usamos una estructura con bloque para incluir la validación de presencia

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize ⇒ Configuration

Returns a new instance of Configuration.

Raises:

  • (ArgumentError)


13
14
15
16
17
18
# File 'lib/ipagos_ruby_sdk/types.rb', line 13

def initialize(*)
  super
  raise ArgumentError, "merchant_id es requerido" if merchant_id.nil?
  raise ArgumentError, "key_id es requerido" if key_id.nil?
  raise ArgumentError, "secret_key es requerido" if secret_key.nil?
end

Instance Attribute Details

#environment ⇒ Object

Returns the value of attribute environment

Returns:

  • (Object) —

    the current value of environment



6
7
8
# File 'lib/ipagos_ruby_sdk/types.rb', line 6

def environment
  @environment
end

#key_id ⇒ Object

Returns the value of attribute key_id

Returns:

  • (Object) —

    the current value of key_id



6
7
8
# File 'lib/ipagos_ruby_sdk/types.rb', line 6

def key_id
  @key_id
end

#merchant_id ⇒ Object

Returns the value of attribute merchant_id

Returns:

  • (Object) —

    the current value of merchant_id



6
7
8
# File 'lib/ipagos_ruby_sdk/types.rb', line 6

def merchant_id
  @merchant_id
end

#secret_key ⇒ Object

Returns the value of attribute secret_key

Returns:

  • (Object) —

    the current value of secret_key



6
7
8
# File 'lib/ipagos_ruby_sdk/types.rb', line 6

def secret_key
  @secret_key
end