Class: Google::Apis::ToolresultsV1::RoboScriptExecution

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/toolresults_v1/classes.rb,
generated/google/apis/toolresults_v1/representations.rb,
generated/google/apis/toolresults_v1/representations.rb

Overview

Execution stats for a user-provided Robo script.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ RoboScriptExecution

Returns a new instance of RoboScriptExecution.



510
511
512
# File 'generated/google/apis/toolresults_v1/classes.rb', line 510

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#successful_actionsFixnum

The number of Robo script actions executed successfully. Corresponds to the JSON property successfulActions

Returns:

  • (Fixnum)


503
504
505
# File 'generated/google/apis/toolresults_v1/classes.rb', line 503

def successful_actions
  @successful_actions
end

#total_actionsFixnum

The total number of actions in the Robo script. Corresponds to the JSON property totalActions

Returns:

  • (Fixnum)


508
509
510
# File 'generated/google/apis/toolresults_v1/classes.rb', line 508

def total_actions
  @total_actions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



515
516
517
518
# File 'generated/google/apis/toolresults_v1/classes.rb', line 515

def update!(**args)
  @successful_actions = args[:successful_actions] if args.key?(:successful_actions)
  @total_actions = args[:total_actions] if args.key?(:total_actions)
end