Class: FbaaApi::Configuration
- Inherits:
-
Object
- Object
- FbaaApi::Configuration
- Defined in:
- lib/fbaa_api/configuration.rb
Instance Attribute Summary collapse
-
#access_id ⇒ Object
identifies the client to the server.
-
#api_version ⇒ Object
Sets which FBAA API version to use.
-
#base_url ⇒ Object
Sets base url for FBAA.
-
#logger ⇒ Object
Set a logger, or use stdout by default.
-
#secret_key ⇒ Object
secret key shared by both the client and server.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
18 19 20 21 22 23 24 |
# File 'lib/fbaa_api/configuration.rb', line 18 def initialize @api_version = 'v1' @base_url = '' @logger = Logger.new(STDOUT) @secret_key = '' @access_id = '' end |
Instance Attribute Details
#access_id ⇒ Object
identifies the client to the server
13 14 15 |
# File 'lib/fbaa_api/configuration.rb', line 13 def access_id @access_id end |
#api_version ⇒ Object
Sets which FBAA API version to use
4 5 6 |
# File 'lib/fbaa_api/configuration.rb', line 4 def api_version @api_version end |
#base_url ⇒ Object
Sets base url for FBAA
7 8 9 |
# File 'lib/fbaa_api/configuration.rb', line 7 def base_url @base_url end |
#logger ⇒ Object
Set a logger, or use stdout by default
16 17 18 |
# File 'lib/fbaa_api/configuration.rb', line 16 def logger @logger end |
#secret_key ⇒ Object
secret key shared by both the client and server
10 11 12 |
# File 'lib/fbaa_api/configuration.rb', line 10 def secret_key @secret_key end |