Class: Blackbird::Retoure::Environments::Base
- Inherits:
-
Object
- Object
- Blackbird::Retoure::Environments::Base
- Defined in:
- lib/blackbird/retoure/environments/base.rb
Overview
Internal: Provide environment specific methods.
Direct Known Subclasses
Instance Method Summary collapse
-
#endpoint_url ⇒ Object
Public: Returns the endpoint url for the current environment.
-
#initialize ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
6 7 8 9 10 11 |
# File 'lib/blackbird/retoure/environments/base.rb', line 6 def initialize @username = ::Blackbird::Retoure.configuration.username @password = ::Blackbird::Retoure.configuration.password @app_id = ::Blackbird::Retoure.configuration.app_id @app_token = ::Blackbird::Retoure.configuration.app_token end |
Instance Method Details
#endpoint_url ⇒ Object
Public: Returns the endpoint url for the current environment. The ENDPOINT constant has to be implemented in the child classes.
Returns as String.
17 18 19 |
# File 'lib/blackbird/retoure/environments/base.rb', line 17 def endpoint_url self.class::ENDPOINT end |