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

Class Method Summary collapse

Class Attribute Details

.configurationObject

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

Yields:



15
16
17
18
# File 'lib/webceo.rb', line 15

def self.configure
  self.configuration ||= Webceo::Configuration.new
  yield(configuration)
end

.gem_versionObject

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

.resetObject



20
21
22
# File 'lib/webceo.rb', line 20

def self.reset
  self.configuration = Webceo::Configuration.new
end