Class: StackOne::Models::Shared::StepLog

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/stack_one/models/shared/steplog.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(action_run_id:, log_type:, step_index:, account_id: nil, duration_ms: nil, end_time: nil, event_time: nil, message: nil, project_id: nil, skipped: nil, start_time: nil, status_code: nil, step_function_name: nil, step_function_version: nil, step_id: nil, step_iterations: nil, success: nil) ⇒ StepLog

Returns a new instance of StepLog.



51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# File 'lib/stack_one/models/shared/steplog.rb', line 51

def initialize(action_run_id:, log_type:, step_index:, account_id: nil, duration_ms: nil, end_time: nil, event_time: nil, message: nil, project_id: nil, skipped: nil, start_time: nil, status_code: nil, step_function_name: nil, step_function_version: nil, step_id: nil, step_iterations: nil, success: nil)
  @action_run_id = action_run_id
  @log_type = log_type
  @step_index = step_index
  @account_id = 
  @duration_ms = duration_ms
  @end_time = end_time
  @event_time = event_time
  @message = message
  @project_id = project_id
  @skipped = skipped
  @start_time = start_time
  @status_code = status_code
  @step_function_name = step_function_name
  @step_function_version = step_function_version
  @step_id = step_id
  @step_iterations = step_iterations
  @success = success
end

Instance Method Details

#==(other) ⇒ Object



72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/stack_one/models/shared/steplog.rb', line 72

def ==(other)
  return false unless other.is_a? self.class
  return false unless @action_run_id == other.action_run_id
  return false unless @log_type == other.log_type
  return false unless @step_index == other.step_index
  return false unless @account_id == other.
  return false unless @duration_ms == other.duration_ms
  return false unless @end_time == other.end_time
  return false unless @event_time == other.event_time
  return false unless @message == other.message
  return false unless @project_id == other.project_id
  return false unless @skipped == other.skipped
  return false unless @start_time == other.start_time
  return false unless @status_code == other.status_code
  return false unless @step_function_name == other.step_function_name
  return false unless @step_function_version == other.step_function_version
  return false unless @step_id == other.step_id
  return false unless @step_iterations == other.step_iterations
  return false unless @success == other.success
  true
end