Class: Episodic::Platform::Base
- Inherits:
-
Object
- Object
- Episodic::Platform::Base
- Defined in:
- lib/episodic/platform/base.rb
Overview
Direct Known Subclasses
Class Method Summary collapse
-
.construct_url(api_name, method_name) ⇒ Object
Helper method to construct an Episodic Platform API request URL.
Class Method Details
.construct_url(api_name, method_name) ⇒ Object
Helper method to construct an Episodic Platform API request URL.
Parameters
- api_name<String>
-
Specifies the API you are calling. Examples are “write”, query“ and ”analytics“
- method_name<String>
-
The method being invoked.
Returns
- URI
-
The constructed URL.
55 56 57 |
# File 'lib/episodic/platform/base.rb', line 55 def construct_url api_name, method_name return URI.parse("http://#{connection.[:api_host] || API_HOST}/api/#{API_VERSION}/#{api_name}/#{method_name}") end |