Class: Hypertube::Core::Handler::PassByValueHandler
- Inherits:
-
AbstractHandler
- Object
- AbstractHandler
- Hypertube::Core::Handler::PassByValueHandler
- Defined in:
- lib/hypertube-ruby-sdk/core/handler/pass_by_value_handler.rb
Instance Method Summary collapse
-
#initialize ⇒ PassByValueHandler
constructor
A new instance of PassByValueHandler.
- #process(command) ⇒ Object
Methods inherited from AbstractHandler
Constructor Details
#initialize ⇒ PassByValueHandler
Returns a new instance of PassByValueHandler.
14 15 16 |
# File 'lib/hypertube-ruby-sdk/core/handler/pass_by_value_handler.rb', line 14 def initialize @required_parameters_count = 1 end |
Instance Method Details
#process(command) ⇒ Object
18 19 20 21 22 |
# File 'lib/hypertube-ruby-sdk/core/handler/pass_by_value_handler.rb', line 18 def process(command) validate(command, @required_parameters_count, self.class.name) instance = command.payload[0] project_value(instance) end |