Module: ZktClient

Extended by:
Forwardable
Defined in:
lib/zkt_client.rb,
lib/zkt_client/version.rb,
lib/zkt_client/exceptions.rb,
lib/zkt_client/http_client.rb,
lib/zkt_client/models/area.rb,
lib/zkt_client/models/base.rb,
lib/zkt_client/access_token.rb,
lib/zkt_client/configuration.rb,
lib/zkt_client/models/device.rb,
lib/zkt_client/models/employee.rb,
lib/zkt_client/models/position.rb,
lib/zkt_client/models/department.rb,
lib/zkt_client/models/transaction.rb,
lib/zkt_client/models/concerns/helperable.rb,
lib/zkt_client/models/concerns/validatable.rb,
lib/generators/zkt_client/install_generator.rb

Overview

require_relative “zkt_client/http_client”

Defined Under Namespace

Modules: Generators, Helperable, Validatable Classes: AccessToken, Area, BadRequestError, Base, Configuration, Department, Device, Employee, Error, HttpClient, MissingConfigurationError, Position, RecordNotFound, RequestFailedError, ServerError, Transaction, UnprocessableEntityError

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.configurationConfiguration

Retrieves the configuration instance

Returns:



42
43
44
# File 'lib/zkt_client.rb', line 42

def configuration
  Configuration.instance
end

.configure {|Configuration| ... } ⇒ void

This method returns an undefined value.

Configures the ZktClient

Yields:



35
36
37
# File 'lib/zkt_client.rb', line 35

def configure
  yield(configuration)
end