Class: Bosh::Cli::Client::ErrandsClient::ErrandResult
- Defined in:
- lib/cli/client/errands_client.rb
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
readonly
Returns the value of attribute exit_code.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(exit_code, stdout, stderr) ⇒ ErrandResult
constructor
A new instance of ErrandResult.
Constructor Details
#initialize(exit_code, stdout, stderr) ⇒ ErrandResult
Returns a new instance of ErrandResult.
6 7 8 9 10 |
# File 'lib/cli/client/errands_client.rb', line 6 def initialize(exit_code, stdout, stderr) @exit_code = exit_code @stdout = stdout @stderr = stderr end |
Instance Attribute Details
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code.
4 5 6 |
# File 'lib/cli/client/errands_client.rb', line 4 def exit_code @exit_code end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
4 5 6 |
# File 'lib/cli/client/errands_client.rb', line 4 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
4 5 6 |
# File 'lib/cli/client/errands_client.rb', line 4 def stdout @stdout end |
Instance Method Details
#==(other) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/cli/client/errands_client.rb', line 12 def ==(other) unless other.is_a?(self.class) raise ArgumentError, "Must be #{self.class} to compare" end [exit_code, stdout, stderr] == [other.exit_code, other.stdout, other.stderr] end |