Class: Log::Config
- Inherits:
-
Object
- Object
- Log::Config
- Defined in:
- lib/droid/heroku/logger_client.rb
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #method_missing(method, value) ⇒ Object
- #to_hash ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
22 23 24 |
# File 'lib/droid/heroku/logger_client.rb', line 22 def initialize @contents = { } end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, value) ⇒ Object
26 27 28 |
# File 'lib/droid/heroku/logger_client.rb', line 26 def method_missing(method, value) @contents[method.to_s.gsub(/=$/, '').to_sym] = value end |
Instance Method Details
#to_hash ⇒ Object
30 31 32 |
# File 'lib/droid/heroku/logger_client.rb', line 30 def to_hash @contents end |