class Echosign::Request::EndpointHash

Public Class Methods

new(paths) click to toggle source
# File lib/echosign/request.rb, line 20
def initialize(paths)
  @paths = paths
end

Public Instance Methods

fetch(endpoint, base_uri) click to toggle source

Get an endpoint by name, using the given base_uri

@param endpoint [Symbol] A legal endpoint name, as a symbol @param base_uri [String] A URI that was retrieved from the base_uris API @return [String] Returns a URL for the endpoint that begins with the base_uri

# File lib/echosign/request.rb, line 29
def fetch(endpoint, base_uri)
  File.join(base_uri, BASE_PATH, @paths.fetch(endpoint))
end