Sha256: 85892c809fa6af08e00f342de2802302f5b664fcea86066c33f2abb80fed0ea5
Contents?: true
Size: 612 Bytes
Versions: 1
Compression:
Stored size: 612 Bytes
Contents
# frozen_string_literal: true module RubyLokaliseApi # This class contains the base client. Inherited by Client (regular API client) # and OAuth2Client (used for OAuth2-based authentication) class BaseClient include RubyLokaliseApi::Rest attr_reader :token, :token_header, :api_host attr_accessor :timeout, :open_timeout def initialize(token, params = {}) @token = token @timeout = params.fetch(:timeout, nil) @open_timeout = params.fetch(:open_timeout, nil) @token_header = '' @api_host = params.fetch(:api_host, nil) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-lokalise-api-9.3.0 | lib/ruby_lokalise_api/base_client.rb |