Class: StackOne::Models::Shared::IamUserAvatar
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::IamUserAvatar
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/iamuser_avatar.rb
Overview
The user’s avatar data. This generally contains a URL within this property’s ‘contents’ array.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(category: nil, category_id: nil, contents: nil, created_at: nil, file_format: nil, id: nil, name: nil, remote_id: nil, remote_url: nil, updated_at: nil) ⇒ IamUserAvatar
constructor
A new instance of IamUserAvatar.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(category: nil, category_id: nil, contents: nil, created_at: nil, file_format: nil, id: nil, name: nil, remote_id: nil, remote_url: nil, updated_at: nil) ⇒ IamUserAvatar
Returns a new instance of IamUserAvatar.
39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/stack_one/models/shared/iamuser_avatar.rb', line 39 def initialize(category: nil, category_id: nil, contents: nil, created_at: nil, file_format: nil, id: nil, name: nil, remote_id: nil, remote_url: nil, updated_at: nil) @category = category @category_id = category_id @contents = contents @created_at = created_at @file_format = file_format @id = id @name = name @remote_id = remote_id @remote_url = remote_url @updated_at = updated_at end |
Instance Method Details
#==(other) ⇒ Object
53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/stack_one/models/shared/iamuser_avatar.rb', line 53 def ==(other) return false unless other.is_a? self.class return false unless @category == other.category return false unless @category_id == other.category_id return false unless @contents == other.contents return false unless @created_at == other.created_at return false unless @file_format == other.file_format return false unless @id == other.id return false unless @name == other.name return false unless @remote_id == other.remote_id return false unless @remote_url == other.remote_url return false unless @updated_at == other.updated_at true end |