Class: Cartowrap::HTTPService::Endpoint
- Inherits:
-
Object
- Object
- Cartowrap::HTTPService::Endpoint
- Defined in:
- lib/cartowrap/http_service/endpoint.rb
Instance Attribute Summary collapse
-
#credentials ⇒ Object
readonly
Returns the value of attribute credentials.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #get ⇒ Object
-
#initialize(options, credentials = {}) ⇒ Endpoint
constructor
A new instance of Endpoint.
Constructor Details
#initialize(options, credentials = {}) ⇒ Endpoint
Returns a new instance of Endpoint.
7 8 9 10 |
# File 'lib/cartowrap/http_service/endpoint.rb', line 7 def initialize(, credentials = {}) @options = @credentials = credentials end |
Instance Attribute Details
#credentials ⇒ Object (readonly)
Returns the value of attribute credentials.
5 6 7 |
# File 'lib/cartowrap/http_service/endpoint.rb', line 5 def credentials @credentials end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/cartowrap/http_service/endpoint.rb', line 5 def @options end |
Instance Method Details
#get ⇒ Object
12 13 14 15 |
# File 'lib/cartowrap/http_service/endpoint.rb', line 12 def get p .to_json endpoint = "#{endpoint_uri}#{endpoint_querystring}" end |