Class: StackOne::Models::Shared::CheckPermissionsRequestDto

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(resource_id:, action: nil, email: nil, resource_type: nil, user_id: nil) ⇒ CheckPermissionsRequestDto

Returns a new instance of CheckPermissionsRequestDto.



27
28
29
30
31
32
33
# File 'lib/stack_one/models/shared/checkpermissionsrequestdto.rb', line 27

def initialize(resource_id:, action: nil, email: nil, resource_type: nil, user_id: nil)
  @resource_id = resource_id
  @action = action
  @email = email
  @resource_type = resource_type
  @user_id = user_id
end

Instance Method Details

#==(other) ⇒ Object



36
37
38
39
40
41
42
43
44
# File 'lib/stack_one/models/shared/checkpermissionsrequestdto.rb', line 36

def ==(other)
  return false unless other.is_a? self.class
  return false unless @resource_id == other.resource_id
  return false unless @action == other.action
  return false unless @email == other.email
  return false unless @resource_type == other.resource_type
  return false unless @user_id == other.user_id
  true
end