Class: StackOne::Models::Shared::HrisDocumentApiModel
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::HrisDocumentApiModel
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/hrisdocumentapimodel.rb
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, type: nil, unified_custom_fields: nil, updated_at: nil) ⇒ HrisDocumentApiModel
constructor
A new instance of HrisDocumentApiModel.
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, type: nil, unified_custom_fields: nil, updated_at: nil) ⇒ HrisDocumentApiModel
Returns a new instance of HrisDocumentApiModel.
45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/stack_one/models/shared/hrisdocumentapimodel.rb', line 45 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, type: nil, unified_custom_fields: 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 @type = type @unified_custom_fields = unified_custom_fields @updated_at = updated_at end |
Instance Method Details
#==(other) ⇒ Object
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/stack_one/models/shared/hrisdocumentapimodel.rb', line 61 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 @type == other.type return false unless @unified_custom_fields == other.unified_custom_fields return false unless @updated_at == other.updated_at true end |