Module: Garrison::Api

Defined in:
lib/garrison/api.rb,
lib/garrison/api/run.rb,
lib/garrison/api/alert.rb,
lib/garrison/api/version.rb

Defined Under Namespace

Classes: Alert, Configuration, Run

Constant Summary collapse

VERSION =
"2.0.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



11
12
13
# File 'lib/garrison/api.rb', line 11

def configuration
  @configuration
end

Class Method Details

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

Yields:



14
15
16
17
# File 'lib/garrison/api.rb', line 14

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