Class: IpagosRubySdk::Configuration
- Inherits:
-
Struct
- Object
- Struct
- IpagosRubySdk::Configuration
- 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
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#key_id ⇒ Object
Returns the value of attribute key_id.
-
#merchant_id ⇒ Object
Returns the value of attribute merchant_id.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
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
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
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
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
6 7 8 |
# File 'lib/ipagos_ruby_sdk/types.rb', line 6 def secret_key @secret_key end |