Module: MatterhornWhymper
- Defined in:
- lib/matterhorn_whymper.rb,
lib/matterhorn_whymper/version.rb
Overview
MatterhornWhymper ===
Defined Under Namespace
Classes: Configuration
Constant Summary collapse
- VERSION =
————————————————————————– const definitions —
"2.1.0"
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
-
.logger ⇒ Object
Returns the value of attribute logger.
Class Method Summary collapse
- .configure {|configuration| ... } ⇒ Object
-
.info ⇒ Object
———————————————————————————– methodes —.
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
37 38 39 |
# File 'lib/matterhorn_whymper.rb', line 37 def configuration @configuration end |
.logger ⇒ Object
Returns the value of attribute logger.
37 38 39 |
# File 'lib/matterhorn_whymper.rb', line 37 def logger @logger end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
48 49 50 51 52 53 54 55 56 57 |
# File 'lib/matterhorn_whymper.rb', line 48 def self.configure self.configuration ||= Configuration.new if defined?(Rails) self.logger = Rails.logger else require 'logger' self.logger = Logger.new(STDOUT) end yield(configuration) if block_given? end |
.info ⇒ Object
———————————————————————————– methodes —
43 44 45 |
# File 'lib/matterhorn_whymper.rb', line 43 def self.info "Ruby wrapper against the Matterhorn Endpoint API. Version #{MatterhornWhymper::VERSION}" end |