Class: Blackbird::Retoure::Environments::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/blackbird/retoure/environments/base.rb

Overview

Internal: Provide environment specific methods.

Direct Known Subclasses

Production, Sandbox

Instance Method Summary collapse

Constructor Details

#initializeBase

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_urlObject

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