Class: Cartowrap::HTTPService::Endpoint

Inherits:
Object
  • Object
show all
Defined in:
lib/cartowrap/http_service/endpoint.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options, credentials = {})
  @options = options
  @credentials  = credentials
end

Instance Attribute Details

#credentialsObject (readonly)

Returns the value of attribute credentials.



5
6
7
# File 'lib/cartowrap/http_service/endpoint.rb', line 5

def credentials
  @credentials
end

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/cartowrap/http_service/endpoint.rb', line 5

def options
  @options
end

Instance Method Details

#getObject



12
13
14
15
# File 'lib/cartowrap/http_service/endpoint.rb', line 12

def get
  p options.to_json
  endpoint = "#{endpoint_uri}#{endpoint_querystring}"
end