Class: Log::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/droid/heroku/logger_client.rb

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_hashObject



30
31
32
# File 'lib/droid/heroku/logger_client.rb', line 30

def to_hash
  @contents
end