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