Sha256: 22eebe7682c12446837c846d9714f9e290220f4ccd24c2fa9509e96cf7a880d8
Contents?: true
Size: 500 Bytes
Versions: 3
Compression:
Stored size: 500 Bytes
Contents
# frozen_string_literal: true module RubyLokaliseApi module Endpoints class MainEndpoint < BaseEndpoint BASE_URL = 'https://api.lokalise.com/api2' def initialize(client, params = {}) super @uri = partial_uri(base_query(*@query_params)) end private def partial_uri(segments, *_args) template = super template.expand( segments: segments.to_a.flatten ).to_s end end end end
Version data entries
3 entries across 3 versions & 1 rubygems