Class: Magellan::Subscriber::Base
- Inherits:
-
AbstractController::Base
- Object
- AbstractController::Base
- Magellan::Subscriber::Base
- Includes:
- AbstractController::Callbacks
- Defined in:
- lib/magellan/subscriber/base.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#topic ⇒ Object
readonly
Returns the value of attribute topic.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(request) ⇒ Base
constructor
A new instance of Base.
- #logger ⇒ Object
Constructor Details
#initialize(request) ⇒ Base
Returns a new instance of Base.
17 18 19 20 21 |
# File 'lib/magellan/subscriber/base.rb', line 17 def initialize(request) @request = request @topic = request.topic @body = request.body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
16 17 18 |
# File 'lib/magellan/subscriber/base.rb', line 16 def body @body end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
16 17 18 |
# File 'lib/magellan/subscriber/base.rb', line 16 def request @request end |
#topic ⇒ Object (readonly)
Returns the value of attribute topic.
16 17 18 |
# File 'lib/magellan/subscriber/base.rb', line 16 def topic @topic end |
Class Method Details
.logger ⇒ Object
12 13 14 |
# File 'lib/magellan/subscriber/base.rb', line 12 def self.logger @logger || ::Rails.logger end |
.logger=(logger) ⇒ Object
8 9 10 |
# File 'lib/magellan/subscriber/base.rb', line 8 def self.logger=(logger) @logger = logger end |
Instance Method Details
#logger ⇒ Object
23 24 25 |
# File 'lib/magellan/subscriber/base.rb', line 23 def logger Magellan::Subscriber::Base.logger end |