Class: SSHake::Mock::ExecutedCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/sshake/mock/executed_command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#commandObject (readonly)

Returns the value of attribute command.



7
8
9
# File 'lib/sshake/mock/executed_command.rb', line 7

def command
  @command
end

#environmentObject (readonly)

Returns the value of attribute environment.



7
8
9
# File 'lib/sshake/mock/executed_command.rb', line 7

def environment
  @environment
end

#responseObject (readonly)

Returns the value of attribute response.



7
8
9
# File 'lib/sshake/mock/executed_command.rb', line 7

def response
  @response
end