Class: Whiskey::Server::Cycle
- Inherits:
-
Object
- Object
- Whiskey::Server::Cycle
- Defined in:
- lib/whiskey/server/cycle.rb
Instance Attribute Summary collapse
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(input) ⇒ Cycle
constructor
A new instance of Cycle.
- #interpret! ⇒ Object
- #output ⇒ Object
Constructor Details
#initialize(input) ⇒ Cycle
Returns a new instance of Cycle.
7 8 9 |
# File 'lib/whiskey/server/cycle.rb', line 7 def initialize(input) @input = deserialized(input) end |
Instance Attribute Details
#input ⇒ Object (readonly)
Returns the value of attribute input.
4 5 6 |
# File 'lib/whiskey/server/cycle.rb', line 4 def input @input end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
5 6 7 |
# File 'lib/whiskey/server/cycle.rb', line 5 def response @response end |
Instance Method Details
#interpret! ⇒ Object
11 12 13 |
# File 'lib/whiskey/server/cycle.rb', line 11 def interpret! @response ||= Interpretor.new(input).response end |
#output ⇒ Object
15 16 17 |
# File 'lib/whiskey/server/cycle.rb', line 15 def output serialized(response) end |