Class: RubyLokaliseApi::Endpoints::MainEndpoint

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

Constant Summary collapse

BASE_URL =
'https://api.lokalise.com/api2'

Constants inherited from BaseEndpoint

BaseEndpoint::HTTP_METHODS, BaseEndpoint::PARTIAL_URI_TEMPLATE

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 = {}) ⇒ MainEndpoint

Returns a new instance of MainEndpoint.



8
9
10
11
12
# File 'lib/ruby_lokalise_api/endpoints/main_endpoint.rb', line 8

def initialize(client, params = {})
  super

  @uri = partial_uri(base_query(*@query_params))
end