Class: AqBanking::Commander::Result
- Inherits:
-
Object
- Object
- AqBanking::Commander::Result
- Defined in:
- lib/aq_banking/commander/result.rb
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(stdout, stderr, status) ⇒ Result
constructor
A new instance of Result.
- #to_s ⇒ Object
Constructor Details
#initialize(stdout, stderr, status) ⇒ Result
Returns a new instance of Result.
5 6 7 8 9 |
# File 'lib/aq_banking/commander/result.rb', line 5 def initialize stdout, stderr, status @stdout = stdout @stderr = stderr @status = status end |
Instance Attribute Details
#status ⇒ Object (readonly)
Returns the value of attribute status.
2 3 4 |
# File 'lib/aq_banking/commander/result.rb', line 2 def status @status end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
2 3 4 |
# File 'lib/aq_banking/commander/result.rb', line 2 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
2 3 4 |
# File 'lib/aq_banking/commander/result.rb', line 2 def stdout @stdout end |
Instance Method Details
#to_s ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/aq_banking/commander/result.rb', line 11 def to_s <<-END status: #{status.exitstatus} stdout: #{stdout} stderr: #{stderr} END end |