Class: Ovto::Middleware::Actions
- Defined in:
- lib/ovto/middleware.rb
Instance Attribute Summary collapse
-
#middleware_path ⇒ Object
readonly
Returns the value of attribute middleware_path.
Attributes inherited from Actions
Instance Method Summary collapse
-
#initialize(middleware_path) ⇒ Actions
constructor
A new instance of Actions.
-
#middleware_name ⇒ Object
The name of the middleware this Actions belongs to.
- #state ⇒ Object
Methods inherited from Actions
Constructor Details
#initialize(middleware_path) ⇒ Actions
Returns a new instance of Actions.
87 88 89 |
# File 'lib/ovto/middleware.rb', line 87 def initialize(middleware_path) @middleware_path = middleware_path end |
Instance Attribute Details
#middleware_path ⇒ Object (readonly)
Returns the value of attribute middleware_path.
90 91 92 |
# File 'lib/ovto/middleware.rb', line 90 def middleware_path @middleware_path end |
Instance Method Details
#middleware_name ⇒ Object
The name of the middleware this Actions belongs to
93 94 95 |
# File 'lib/ovto/middleware.rb', line 93 def middleware_name self.class::OVTO_MIDDLEWARE_NAME end |
#state ⇒ Object
97 98 99 100 |
# File 'lib/ovto/middleware.rb', line 97 def state app_state = super return Ovto::Middleware.dig_middleware_state(app_state, @middleware_path) end |