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.
88 89 90 91 92 93 94 95 96 97 |
# File 'lib/sf_cli/sf/apex/run.rb', line 88 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.
86 87 88 |
# File 'lib/sf_cli/sf/apex/run.rb', line 86 def column @column end |
#compile_problem ⇒ Object (readonly)
Returns the value of attribute compile_problem.
86 87 88 |
# File 'lib/sf_cli/sf/apex/run.rb', line 86 def compile_problem @compile_problem end |
#compiled ⇒ Object (readonly)
Returns the value of attribute compiled.
86 87 88 |
# File 'lib/sf_cli/sf/apex/run.rb', line 86 def compiled @compiled end |
#exception_message ⇒ Object (readonly)
Returns the value of attribute exception_message.
86 87 88 |
# File 'lib/sf_cli/sf/apex/run.rb', line 86 def @exception_message end |
#exception_stack_trace ⇒ Object (readonly)
Returns the value of attribute exception_stack_trace.
86 87 88 |
# File 'lib/sf_cli/sf/apex/run.rb', line 86 def exception_stack_trace @exception_stack_trace end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
86 87 88 |
# File 'lib/sf_cli/sf/apex/run.rb', line 86 def line @line end |
#logs ⇒ Object (readonly)
Returns the value of attribute logs.
86 87 88 |
# File 'lib/sf_cli/sf/apex/run.rb', line 86 def logs @logs end |
#success ⇒ Object (readonly)
Returns the value of attribute success.
86 87 88 |
# File 'lib/sf_cli/sf/apex/run.rb', line 86 def success @success end |