Class: SfCli::Sf::Apex::Run::ApexResult

Inherits:
Object
  • Object
show all
Defined in:
lib/sf_cli/sf/apex/run.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#columnObject (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_problemObject (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

#compiledObject (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_messageObject (readonly)

Returns the value of attribute exception_message.



86
87
88
# File 'lib/sf_cli/sf/apex/run.rb', line 86

def exception_message
  @exception_message
end

#exception_stack_traceObject (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

#lineObject (readonly)

Returns the value of attribute line.



86
87
88
# File 'lib/sf_cli/sf/apex/run.rb', line 86

def line
  @line
end

#logsObject (readonly)

Returns the value of attribute logs.



86
87
88
# File 'lib/sf_cli/sf/apex/run.rb', line 86

def logs
  @logs
end

#successObject (readonly)

Returns the value of attribute success.



86
87
88
# File 'lib/sf_cli/sf/apex/run.rb', line 86

def success
  @success
end