Module: Atlas

Defined in:
lib/atlas.rb,
lib/atlas/box.rb,
lib/atlas/user.rb,
lib/atlas/client.rb,
lib/atlas/errors.rb,
lib/atlas/version.rb,
lib/atlas/resource.rb,
lib/atlas/box_version.rb,
lib/atlas/url_builder.rb,
lib/atlas/box_provider.rb,
lib/atlas/configuration.rb,
lib/atlas/mixins/validations.rb

Overview

Version information.

Defined Under Namespace

Modules: Errors, Validations Classes: Box, BoxProvider, BoxVersion, Client, Configuration, Resource, UrlBuilder, User

Constant Summary collapse

VERSION =
"2.0.0".freeze

Class Attribute Summary collapse

Instance Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

The default configuration object.



52
53
54
# File 'lib/atlas/configuration.rb', line 52

def configuration
  @configuration
end

Instance Attribute Details

#clientObject

Returns the value of attribute client.



19
20
21
# File 'lib/atlas.rb', line 19

def client
  @client
end

Class Method Details

.clientObject



21
22
23
# File 'lib/atlas.rb', line 21

def self.client
  @client ||= Client.new(token: configuration.token)
end

.configure {|configuration| ... } ⇒ Object

Support for a configuration block.

Yields:



47
48
49
# File 'lib/atlas/configuration.rb', line 47

def self.configure
  yield configuration if block_given?
end