Class: Payrex::Config
- Inherits:
-
Object
- Object
- Payrex::Config
- Defined in:
- lib/config.rb
Constant Summary collapse
- API_BASE_URL =
"https://api.payrexhq.com"
Instance Attribute Summary collapse
-
#api_base_url ⇒ Object
readonly
Returns the value of attribute api_base_url.
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
Instance Method Summary collapse
-
#initialize(api_key) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(api_key) ⇒ Config
Returns a new instance of Config.
8 9 10 11 |
# File 'lib/config.rb', line 8 def initialize(api_key) @api_base_url = API_BASE_URL @api_key = api_key end |
Instance Attribute Details
#api_base_url ⇒ Object (readonly)
Returns the value of attribute api_base_url.
3 4 5 |
# File 'lib/config.rb', line 3 def api_base_url @api_base_url end |
#api_key ⇒ Object (readonly)
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/config.rb', line 3 def api_key @api_key end |