Class: Ovto::Middleware::Actions

Inherits:
Actions
  • Object
show all
Defined in:
lib/ovto/middleware.rb

Instance Attribute Summary collapse

Attributes inherited from Actions

#wired_actions

Instance Method Summary collapse

Methods inherited from Actions

#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_pathObject (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_nameObject

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

#stateObject



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