Class: LayersService::Configuration
- Inherits:
-
Object
- Object
- LayersService::Configuration
- Defined in:
- lib/layers_service.rb
Overview
Implement Layers Service configuration
Instance Attribute Summary collapse
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#layers_token ⇒ Object
readonly
Returns the value of attribute layers_token.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #set_configuration(base_url:, layers_token:) ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
24 25 26 27 |
# File 'lib/layers_service.rb', line 24 def initialize @base_url = "" @layers_token = "" end |
Instance Attribute Details
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
22 23 24 |
# File 'lib/layers_service.rb', line 22 def base_url @base_url end |
#layers_token ⇒ Object (readonly)
Returns the value of attribute layers_token.
22 23 24 |
# File 'lib/layers_service.rb', line 22 def layers_token @layers_token end |
Instance Method Details
#set_configuration(base_url:, layers_token:) ⇒ Object
29 30 31 32 |
# File 'lib/layers_service.rb', line 29 def set_configuration(base_url:, layers_token:) @base_url = base_url @layers_token = layers_token end |