Class: SSHake::Mock::ExecutedCommand
- Inherits:
-
Object
- Object
- SSHake::Mock::ExecutedCommand
- Defined in:
- lib/sshake/mock/executed_command.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#environment ⇒ Object
readonly
Returns the value of attribute environment.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(command, environment, response) ⇒ ExecutedCommand
constructor
A new instance of ExecutedCommand.
Constructor Details
#initialize(command, environment, response) ⇒ ExecutedCommand
Returns a new instance of ExecutedCommand.
9 10 11 12 13 |
# File 'lib/sshake/mock/executed_command.rb', line 9 def initialize(command, environment, response) @command = command @environment = environment @response = response end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
7 8 9 |
# File 'lib/sshake/mock/executed_command.rb', line 7 def command @command end |
#environment ⇒ Object (readonly)
Returns the value of attribute environment.
7 8 9 |
# File 'lib/sshake/mock/executed_command.rb', line 7 def environment @environment end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
7 8 9 |
# File 'lib/sshake/mock/executed_command.rb', line 7 def response @response end |