Module: InfaktApiClient

Defined in:
lib/infakt_api_client.rb,
lib/infakt_api_client/user.rb,
lib/infakt_api_client/client.rb,
lib/infakt_api_client/engine.rb,
lib/infakt_api_client/version.rb,
lib/infakt_api_client/configuration.rb,
lib/generators/infakt_api_client/install_generator.rb

Overview

Module for interacting with the inFakt.pl API

Defined Under Namespace

Modules: Generators Classes: Client, Configuration, ConfigurationError, Engine, Error, User

Constant Summary collapse

VERSION =
"0.1.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationConfiguration

Returns Current configuration instance.

Returns:



26
27
28
# File 'lib/infakt_api_client.rb', line 26

def configuration
  @configuration ||= Configuration.new
end

Class Method Details

.configure {|config| ... } ⇒ Object

Configures the client through a block

Yields:

  • (config)

    Configuration instance

Raises:



33
34
35
36
37
# File 'lib/infakt_api_client.rb', line 33

def configure
  yield(configuration)
rescue LocalJumpError
  raise ConfigurationError, "Configuration block is required"
end