Class: RubyLokaliseApi::Endpoints::OAuth2::OAuth2Endpoint
- Inherits:
-
BaseEndpoint
- Object
- BaseEndpoint
- RubyLokaliseApi::Endpoints::OAuth2::OAuth2Endpoint
- 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
Instance Attribute Summary
Attributes inherited from BaseEndpoint
Instance Method Summary collapse
-
#initialize(client, params = {}) ⇒ OAuth2Endpoint
constructor
A new instance of OAuth2Endpoint.
Methods inherited from BaseEndpoint
#base_url, #full_uri, #reinitialize
Methods included from Request
#delete, #get, #patch, #post, #put
Methods included from Connection
Methods included from JsonHandler
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 |