Class: StackOne::Models::Shared::PlatformLog

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/stack_one/models/shared/platformlog.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, category: nil, child_resource: nil, duration: nil, end_time: nil, event_datetime: nil, http_method: nil, path: nil, project_id: nil, request_id: nil, resource: nil, source_id: nil, source_ip: nil, source_type: nil, source_value: nil, start_time: nil, status: nil, sub_resource: nil, success: nil, url: nil) ⇒ PlatformLog

Returns a new instance of PlatformLog.



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

def initialize(account_id: nil, action: nil, category: nil, child_resource: nil, duration: nil, end_time: nil, event_datetime: nil, http_method: nil, path: nil, project_id: nil, request_id: nil, resource: nil, source_id: nil, source_ip: nil, source_type: nil, source_value: nil, start_time: nil, status: nil, sub_resource: nil, success: nil, url: nil)
  @account_id = 
  @action = action
  @category = category
  @child_resource = child_resource
  @duration = duration
  @end_time = end_time
  @event_datetime = event_datetime
  @http_method = http_method
  @path = path
  @project_id = project_id
  @request_id = request_id
  @resource = resource
  @source_id = source_id
  @source_ip = source_ip
  @source_type = source_type
  @source_value = source_value
  @start_time = start_time
  @status = status
  @sub_resource = sub_resource
  @success = success
  @url = url
end

Instance Method Details

#==(other) ⇒ Object



84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# File 'lib/stack_one/models/shared/platformlog.rb', line 84

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 @category == other.category
  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 @event_datetime == other.event_datetime
  return false unless @http_method == other.http_method
  return false unless @path == other.path
  return false unless @project_id == other.project_id
  return false unless @request_id == other.request_id
  return false unless @resource == other.resource
  return false unless @source_id == other.source_id
  return false unless @source_ip == other.source_ip
  return false unless @source_type == other.source_type
  return false unless @source_value == other.source_value
  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