Class: Yap::Shell::Execution::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/yap/shell/execution/result.rb

Direct Known Subclasses

ResumeExecution, SuspendExecution

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status_code:, directory:, n:, of:) ⇒ Result

Returns a new instance of Result.



5
6
7
8
9
10
# File 'lib/yap/shell/execution/result.rb', line 5

def initialize(status_code:, directory:, n:, of:)
  @status_code = status_code
  @directory = directory
  @n = n
  @of = of
end

Instance Attribute Details

#directoryObject (readonly)

Returns the value of attribute directory.



3
4
5
# File 'lib/yap/shell/execution/result.rb', line 3

def directory
  @directory
end

#nObject (readonly)

Returns the value of attribute n.



3
4
5
# File 'lib/yap/shell/execution/result.rb', line 3

def n
  @n
end

#ofObject (readonly)

Returns the value of attribute of.



3
4
5
# File 'lib/yap/shell/execution/result.rb', line 3

def of
  @of
end

#status_codeObject (readonly)

Returns the value of attribute status_code.



3
4
5
# File 'lib/yap/shell/execution/result.rb', line 3

def status_code
  @status_code
end