Class: AppfluxRuby::MessageBuilders::Base
- Inherits:
-
Object
- Object
- AppfluxRuby::MessageBuilders::Base
- Defined in:
- lib/appflux_ruby/message_builders/base.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(exception, rack_env) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(exception, rack_env) ⇒ Base
Returns a new instance of Base.
4 5 6 7 8 9 10 11 |
# File 'lib/appflux_ruby/message_builders/base.rb', line 4 def initialize exception, rack_env @exception = exception @rack_env = rack_env @request = ::Rack::Request.new(rack_env) @session = @request.session ## TODO: Probably extract this hash into a dedicated class? @notice = Hash.new end |
Class Method Details
.build(exception, rack_env) ⇒ Object
17 18 19 |
# File 'lib/appflux_ruby/message_builders/base.rb', line 17 def self.build exception, rack_env new(exception, rack_env).build end |
Instance Method Details
#build ⇒ Object
13 14 15 |
# File 'lib/appflux_ruby/message_builders/base.rb', line 13 def build @notice end |