Class: Spurious::Server::State::Base
- Inherits:
-
Object
- Object
- Spurious::Server::State::Base
- Defined in:
- lib/spurious/server/state/base.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
-
#connection ⇒ Object
Returns the value of attribute connection.
Instance Method Summary collapse
- #execute! ⇒ Object
-
#initialize(connection, config) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(connection, config) ⇒ Base
Returns a new instance of Base.
11 12 13 14 |
# File 'lib/spurious/server/state/base.rb', line 11 def initialize(connection, config) @connection = connection @config = config end |
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
9 10 11 |
# File 'lib/spurious/server/state/base.rb', line 9 def config @config end |
#connection ⇒ Object
Returns the value of attribute connection.
9 10 11 |
# File 'lib/spurious/server/state/base.rb', line 9 def connection @connection end |
Instance Method Details
#execute! ⇒ Object
16 17 18 |
# File 'lib/spurious/server/state/base.rb', line 16 def execute! raise NotImplementedError("You must implement execute!") end |