Class: RubyLokaliseApi::Endpoints::OAuth2::OAuth2Endpoint

Inherits:
BaseEndpoint
  • Object
show all
Defined in:
lib/ruby_lokalise_api/endpoints/oauth2/oauth2_endpoint.rb

Constant Summary collapse

BASE_URL =
'https://app.lokalise.com/oauth2'
PARTIAL_URI_TEMPLATE =
'{/segments*}{?query*}'

Constants inherited from BaseEndpoint

BaseEndpoint::HTTP_METHODS

Instance Attribute Summary

Attributes inherited from BaseEndpoint

#client, #req_params, #uri

Instance Method Summary collapse

Methods inherited from BaseEndpoint

#base_url, #full_uri, #reinitialize

Methods included from Request

#delete, #get, #patch, #post, #put

Methods included from Connection

#connection

Methods included from JsonHandler

#custom_dump, #custom_load

Constructor Details

#initialize(client, params = {}) ⇒ OAuth2Endpoint

Returns a new instance of OAuth2Endpoint.



10
11
12
13
14
# File 'lib/ruby_lokalise_api/endpoints/oauth2/oauth2_endpoint.rb', line 10

def initialize(client, params = {})
  super

  @uri = build_uri(params.fetch(:get, []))
end