Class: Fonepaisa::Configuration
- Inherits:
-
Object
- Object
- Fonepaisa::Configuration
- Defined in:
- lib/fonepaisa/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#salt ⇒ Object
Returns the value of attribute salt.
Instance Method Summary collapse
- #api_key! ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #salt! ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 |
# File 'lib/fonepaisa/configuration.rb', line 5 def initialize @api_key = nil @salt = nil end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/fonepaisa/configuration.rb', line 3 def api_key @api_key end |
#salt ⇒ Object
Returns the value of attribute salt.
3 4 5 |
# File 'lib/fonepaisa/configuration.rb', line 3 def salt @salt end |
Instance Method Details
#api_key! ⇒ Object
10 11 12 |
# File 'lib/fonepaisa/configuration.rb', line 10 def api_key! api_key || raise(FonepaisaError, 'No api key specified.') end |
#salt! ⇒ Object
14 15 16 |
# File 'lib/fonepaisa/configuration.rb', line 14 def salt! salt || raise(FonepaisaError, 'No salt specified.') end |