Class: SfCli::Sf::Apex::Run::ApexResult
- Inherits:
-
Object
- Object
- SfCli::Sf::Apex::Run::ApexResult
- Defined in:
- lib/sf_cli/sf/apex/run.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#compile_problem ⇒ Object
readonly
Returns the value of attribute compile_problem.
-
#compiled ⇒ Object
readonly
Returns the value of attribute compiled.
-
#exception_message ⇒ Object
readonly
Returns the value of attribute exception_message.
-
#exception_stack_trace ⇒ Object
readonly
Returns the value of attribute exception_stack_trace.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#logs ⇒ Object
readonly
Returns the value of attribute logs.
-
#success ⇒ Object
readonly
Returns the value of attribute success.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ ApexResult
constructor
A new instance of ApexResult.
Constructor Details
#initialize(attributes) ⇒ ApexResult
Returns a new instance of ApexResult.
98 99 100 101 102 103 104 105 106 107 |
# File 'lib/sf_cli/sf/apex/run.rb', line 98 def initialize(attributes) @success = attributes['success'] @compiled = attributes['compiled'] @compile_problem = attributes['compileProblem'] @exception_message = attributes['exceptionMessage'] @exception_stack_trace = attributes['exceptionStackTrace'] @line = attributes['line'] @column = attributes['column'] @logs = attributes['logs'].chomp.split("\n") end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
96 97 98 |
# File 'lib/sf_cli/sf/apex/run.rb', line 96 def column @column end |
#compile_problem ⇒ Object (readonly)
Returns the value of attribute compile_problem.
96 97 98 |
# File 'lib/sf_cli/sf/apex/run.rb', line 96 def compile_problem @compile_problem end |
#compiled ⇒ Object (readonly)
Returns the value of attribute compiled.
96 97 98 |
# File 'lib/sf_cli/sf/apex/run.rb', line 96 def compiled @compiled end |
#exception_message ⇒ Object (readonly)
Returns the value of attribute exception_message.
96 97 98 |
# File 'lib/sf_cli/sf/apex/run.rb', line 96 def @exception_message end |
#exception_stack_trace ⇒ Object (readonly)
Returns the value of attribute exception_stack_trace.
96 97 98 |
# File 'lib/sf_cli/sf/apex/run.rb', line 96 def exception_stack_trace @exception_stack_trace end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
96 97 98 |
# File 'lib/sf_cli/sf/apex/run.rb', line 96 def line @line end |
#logs ⇒ Object (readonly)
Returns the value of attribute logs.
96 97 98 |
# File 'lib/sf_cli/sf/apex/run.rb', line 96 def logs @logs end |
#success ⇒ Object (readonly)
Returns the value of attribute success.
96 97 98 |
# File 'lib/sf_cli/sf/apex/run.rb', line 96 def success @success end |