Module: Webceo
- Defined in:
- lib/webceo.rb,
lib/webceo/api.rb,
lib/webceo/version.rb,
lib/webceo/api/error.rb,
lib/webceo/api/client.rb,
lib/webceo/api/request.rb,
lib/webceo/api/response.rb,
lib/webceo/configuration.rb,
lib/generators/webceo/install_generator.rb
Defined Under Namespace
Modules: Api, Generators, VERSION Classes: Configuration
Constant Summary collapse
- API_METHODS =
YAML.load_file('./lib/webceo/api_methods.yml')
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
- .configure {|configuration| ... } ⇒ Object
-
.gem_version ⇒ Object
Returns the version of the currently loaded Webceo as a
Gem::Version
. - .reset ⇒ Object
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
12 13 14 |
# File 'lib/webceo.rb', line 12 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
15 16 17 18 |
# File 'lib/webceo.rb', line 15 def self.configure self.configuration ||= Webceo::Configuration.new yield(configuration) end |
.gem_version ⇒ Object
Returns the version of the currently loaded Webceo as a Gem::Version
7 8 9 |
# File 'lib/webceo/version.rb', line 7 def self.gem_version Gem::Version.new VERSION::STRING end |
.reset ⇒ Object
20 21 22 |
# File 'lib/webceo.rb', line 20 def self.reset self.configuration = Webceo::Configuration.new end |