Class: StackOne::Models::Shared::ActionsRpcRequestDto

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(action:, body: nil, defender_config: nil, defender_enabled: nil, headers: nil, path: nil, query: nil) ⇒ ActionsRpcRequestDto

Returns a new instance of ActionsRpcRequestDto.



33
34
35
36
37
38
39
40
41
# File 'lib/stack_one/models/shared/actionsrpcrequestdto.rb', line 33

def initialize(action:, body: nil, defender_config: nil, defender_enabled: nil, headers: nil, path: nil, query: nil)
  @action = action
  @body = body
  @defender_config = defender_config
  @defender_enabled = defender_enabled
  @headers = headers
  @path = path
  @query = query
end

Instance Method Details

#==(other) ⇒ Object



44
45
46
47
48
49
50
51
52
53
54
# File 'lib/stack_one/models/shared/actionsrpcrequestdto.rb', line 44

def ==(other)
  return false unless other.is_a? self.class
  return false unless @action == other.action
  return false unless @body == other.body
  return false unless @defender_config == other.defender_config
  return false unless @defender_enabled == other.defender_enabled
  return false unless @headers == other.headers
  return false unless @path == other.path
  return false unless @query == other.query
  true
end