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(account_id: nil, action: nil, child_resource: nil, duration: nil, end_time: nil, http_method: nil, id: nil, is_worker: nil, path: nil, project_id: nil, provider: nil, request: nil, request_id: nil, resource: nil, response: nil, service: nil, source_ip: nil, start_time: nil, status: nil, sub_resource: nil, success: nil, url: nil) ⇒ StepLog

Returns a new instance of StepLog.



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# File 'lib/stack_one/models/shared/steplog.rb', line 61

def initialize(account_id: nil, action: nil, child_resource: nil, duration: nil, end_time: nil, http_method: nil, id: nil, is_worker: nil, path: nil, project_id: nil, provider: nil, request: nil, request_id: nil, resource: nil, response: nil, service: nil, source_ip: nil, start_time: nil, status: nil, sub_resource: nil, success: nil, url: nil)
  @account_id = 
  @action = action
  @child_resource = child_resource
  @duration = duration
  @end_time = end_time
  @http_method = http_method
  @id = id
  @is_worker = is_worker
  @path = path
  @project_id = project_id
  @provider = provider
  @request = request
  @request_id = request_id
  @resource = resource
  @response = response
  @service = service
  @source_ip = source_ip
  @start_time = start_time
  @status = status
  @sub_resource = sub_resource
  @success = success
  @url = url
end

Instance Method Details

#==(other) ⇒ Object



87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# File 'lib/stack_one/models/shared/steplog.rb', line 87

def ==(other)
  return false unless other.is_a? self.class
  return false unless @account_id == other.
  return false unless @action == other.action
  return false unless @child_resource == other.child_resource
  return false unless @duration == other.duration
  return false unless @end_time == other.end_time
  return false unless @http_method == other.http_method
  return false unless @id == other.id
  return false unless @is_worker == other.is_worker
  return false unless @path == other.path
  return false unless @project_id == other.project_id
  return false unless @provider == other.provider
  return false unless @request == other.request
  return false unless @request_id == other.request_id
  return false unless @resource == other.resource
  return false unless @response == other.response
  return false unless @service == other.service
  return false unless @source_ip == other.source_ip
  return false unless @start_time == other.start_time
  return false unless @status == other.status
  return false unless @sub_resource == other.sub_resource
  return false unless @success == other.success
  return false unless @url == other.url
  true
end