Class: Ask::Actions::Context
- Inherits:
-
Object
- Object
- Ask::Actions::Context
- Defined in:
- lib/ask/actions/context.rb
Overview
A per-request bag of context. Channel adapters construct it with whatever the app needs — user, session, workspace, channel, voice call — and actions read from it. Attributes become accessors on the instance.
Instance Method Summary collapse
-
#initialize(**attributes) ⇒ Context
constructor
A new instance of Context.
Constructor Details
#initialize(**attributes) ⇒ Context
Returns a new instance of Context.
14 15 16 |
# File 'lib/ask/actions/context.rb', line 14 def initialize(**attributes) attributes.each { |name, value| define_attribute(name, value) } end |