Class: Emque::Consuming::CommandReceivers::HttpServer::Logger
- Inherits:
-
Object
- Object
- Emque::Consuming::CommandReceivers::HttpServer::Logger
- Defined in:
- lib/emque/consuming/command_receivers/http_server.rb
Instance Attribute Summary collapse
-
#method ⇒ Object
Returns the value of attribute method.
-
#sync ⇒ Object
Returns the value of attribute sync.
Instance Method Summary collapse
-
#initialize(method) ⇒ Logger
constructor
A new instance of Logger.
- #puts(str) ⇒ Object (also: #write)
Constructor Details
#initialize(method) ⇒ Logger
Returns a new instance of Logger.
91 92 93 |
# File 'lib/emque/consuming/command_receivers/http_server.rb', line 91 def initialize(method) self.method = method end |
Instance Attribute Details
#method ⇒ Object
Returns the value of attribute method.
89 90 91 |
# File 'lib/emque/consuming/command_receivers/http_server.rb', line 89 def method @method end |
#sync ⇒ Object
Returns the value of attribute sync.
89 90 91 |
# File 'lib/emque/consuming/command_receivers/http_server.rb', line 89 def sync @sync end |
Instance Method Details
#puts(str) ⇒ Object Also known as: write
95 96 97 |
# File 'lib/emque/consuming/command_receivers/http_server.rb', line 95 def puts(str) Emque::Consuming.logger.send(method, str) end |