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
-
.configuration ⇒ Object
The default configuration object.
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
Class Method Summary collapse
- .client ⇒ Object
-
.configure {|configuration| ... } ⇒ Object
Support for a configuration block.
Class Attribute Details
.configuration ⇒ Object
The default configuration object.
52 53 54 |
# File 'lib/atlas/configuration.rb', line 52 def configuration @configuration end |
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
19 20 21 |
# File 'lib/atlas.rb', line 19 def client @client end |
Class Method Details
.client ⇒ Object
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.
47 48 49 |
# File 'lib/atlas/configuration.rb', line 47 def self.configure yield configuration if block_given? end |