Module: Carriots

Extended by:
Configurable
Defined in:
lib/carriots.rb,
lib/carriots/client.rb,
lib/carriots/default.rb,
lib/carriots/version.rb,
lib/carriots/connection.rb,
lib/carriots/api_methods.rb,
lib/carriots/configurable.rb,
lib/carriots/api_methods/options.rb,
lib/carriots/api_methods/streams_options.rb

Overview

streams_options.rb

Defined Under Namespace

Modules: ApiMethods, Configurable, Connection, Default Classes: Client

Constant Summary collapse

MAJOR =

Current major release.

Returns:

  • (Integer)
0
MINOR =

Current minor release.

Returns:

  • (Integer)
0
PATCH =

Current patch level.

Returns:

  • (Integer)
2
VERSION =

Full release version.

Returns:

  • (String)
[MAJOR, MINOR, PATCH].join('.').freeze

Instance Attribute Summary

Attributes included from Configurable

#api_endpoint, #connection_options, #default_media_type, #login, #user_agent, #web_endpoint, #write_api_key

Class Method Summary collapse

Methods included from Configurable

configure, keys, reset!, same_options?

Class Method Details

.clientObject



10
11
12
13
# File 'lib/carriots.rb', line 10

def client
  return @client if defined?(@client) && @client.same_options?(options)
  @client = Carriots::Client.new(options)
end