Class: Clerk::Models::Operations::CreateRoleSetRequest
- Inherits:
-
Object
- Object
- Clerk::Models::Operations::CreateRoleSetRequest
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/operations/createroleset_request.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name:, default_role_key:, creator_role_key:, roles:, key: nil, type: nil, description: nil) ⇒ CreateRoleSetRequest
constructor
A new instance of CreateRoleSetRequest.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(name:, default_role_key:, creator_role_key:, roles:, key: nil, type: nil, description: nil) ⇒ CreateRoleSetRequest
Returns a new instance of CreateRoleSetRequest.
36 37 38 39 40 41 42 43 44 |
# File 'lib/clerk/models/operations/createroleset_request.rb', line 36 def initialize(name:, default_role_key:, creator_role_key:, roles:, key: nil, type: nil, description: nil) @name = name @default_role_key = default_role_key @creator_role_key = creator_role_key @roles = roles @key = key @type = type @description = description end |
Instance Method Details
#==(other) ⇒ Object
47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/clerk/models/operations/createroleset_request.rb', line 47 def ==(other) return false unless other.is_a? self.class return false unless @name == other.name return false unless @default_role_key == other.default_role_key return false unless @creator_role_key == other.creator_role_key return false unless @roles == other.roles return false unless @key == other.key return false unless @type == other.type return false unless @description == other.description true end |