Class: PayOS::Configuration
- Inherits:
-
Object
- Object
- PayOS::Configuration
- Defined in:
- lib/payOS/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#checksum_secret ⇒ Object
Returns the value of attribute checksum_secret.
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#partner_code ⇒ Object
Returns the value of attribute partner_code.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #validate! ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 |
# File 'lib/payOS/configuration.rb', line 7 def initialize @client_id = nil @api_key = nil @checksum_secret = nil @partner_code = nil end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
5 6 7 |
# File 'lib/payOS/configuration.rb', line 5 def api_key @api_key end |
#checksum_secret ⇒ Object
Returns the value of attribute checksum_secret.
5 6 7 |
# File 'lib/payOS/configuration.rb', line 5 def checksum_secret @checksum_secret end |
#client_id ⇒ Object
Returns the value of attribute client_id.
5 6 7 |
# File 'lib/payOS/configuration.rb', line 5 def client_id @client_id end |
#partner_code ⇒ Object
Returns the value of attribute partner_code.
5 6 7 |
# File 'lib/payOS/configuration.rb', line 5 def partner_code @partner_code end |
Instance Method Details
#validate! ⇒ Object
14 15 16 17 18 |
# File 'lib/payOS/configuration.rb', line 14 def validate! raise Error, "client_id is required" if client_id.nil? raise Error, "api_key is required" if api_key.nil? raise Error, "checksum_secret is required" if checksum_secret.nil? end |