Class: Ovto::Actions

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

Overview

Base class for ovto actions.

Direct Known Subclasses

Middleware::Actions

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#wired_actions=(value) ⇒ Object (writeonly)

WiredActions must be set after initialization (this cannot be an argument of #initialize because Actions and WiredActions have references to each other)



7
8
9
# File 'lib/ovto/actions.rb', line 7

def wired_actions=(value)
  @wired_actions = value
end

Instance Method Details

#actionsObject



9
10
11
# File 'lib/ovto/actions.rb', line 9

def actions
  @wired_actions
end

#middleware_nameObject



17
18
19
# File 'lib/ovto/actions.rb', line 17

def middleware_name
  WiredActionSet::I_AM_APP_NOT_A_MIDDLEWARE
end

#middleware_pathObject



21
22
23
# File 'lib/ovto/actions.rb', line 21

def middleware_path
  []
end

#stateObject



13
14
15
# File 'lib/ovto/actions.rb', line 13

def state
  @wired_actions._app.state
end