Class: StackOne::Models::Shared::Filters

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

Overview

The filters to apply to the results

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(account_secure_id: nil, action_id: nil, action_run_id: nil, action_type: nil, category: nil, connector_key: nil, connector_version: nil, end_time: nil, http_method: nil, mode: nil, order_by: nil, order_direction: nil, origin_owner_id: nil, origin_owner_name: nil, source_id: nil, source_type: nil, start_time: nil, status_code: nil, success: nil) ⇒ Filters

Returns a new instance of Filters.



55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/stack_one/models/shared/filters.rb', line 55

def initialize(account_secure_id: nil, action_id: nil, action_run_id: nil, action_type: nil, category: nil, connector_key: nil, connector_version: nil, end_time: nil, http_method: nil, mode: nil, order_by: nil, order_direction: nil, origin_owner_id: nil, origin_owner_name: nil, source_id: nil, source_type: nil, start_time: nil, status_code: nil, success: nil)
  @account_secure_id = 
  @action_id = action_id
  @action_run_id = action_run_id
  @action_type = action_type
  @category = category
  @connector_key = connector_key
  @connector_version = connector_version
  @end_time = end_time
  @http_method = http_method
  @mode = mode
  @order_by = order_by
  @order_direction = order_direction
  @origin_owner_id = origin_owner_id
  @origin_owner_name = origin_owner_name
  @source_id = source_id
  @source_type = source_type
  @start_time = start_time
  @status_code = status_code
  @success = success
end

Instance Method Details

#==(other) ⇒ Object



78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# File 'lib/stack_one/models/shared/filters.rb', line 78

def ==(other)
  return false unless other.is_a? self.class
  return false unless @account_secure_id == other.
  return false unless @action_id == other.action_id
  return false unless @action_run_id == other.action_run_id
  return false unless @action_type == other.action_type
  return false unless @category == other.category
  return false unless @connector_key == other.connector_key
  return false unless @connector_version == other.connector_version
  return false unless @end_time == other.end_time
  return false unless @http_method == other.http_method
  return false unless @mode == other.mode
  return false unless @order_by == other.order_by
  return false unless @order_direction == other.order_direction
  return false unless @origin_owner_id == other.origin_owner_id
  return false unless @origin_owner_name == other.origin_owner_name
  return false unless @source_id == other.source_id
  return false unless @source_type == other.source_type
  return false unless @start_time == other.start_time
  return false unless @status_code == other.status_code
  return false unless @success == other.success
  true
end