Class: StackOne::Models::Shared::Files
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::Files
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/files.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(all_parent_folder_ids: nil, created_at: nil, default_download_format: nil, description: nil, drive_id: nil, export_formats: nil, file_format: nil, folder_id: nil, has_children: nil, has_content: nil, id: nil, name: nil, owner_id: nil, path: nil, remote_drive_id: nil, remote_folder_id: nil, remote_id: nil, remote_owner_id: nil, size: nil, updated_at: nil, url: nil) ⇒ Files
constructor
A new instance of Files.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(all_parent_folder_ids: nil, created_at: nil, default_download_format: nil, description: nil, drive_id: nil, export_formats: nil, file_format: nil, folder_id: nil, has_children: nil, has_content: nil, id: nil, name: nil, owner_id: nil, path: nil, remote_drive_id: nil, remote_folder_id: nil, remote_id: nil, remote_owner_id: nil, size: nil, updated_at: nil, url: nil) ⇒ Files
Returns a new instance of Files.
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/stack_one/models/shared/files.rb', line 59 def initialize(all_parent_folder_ids: nil, created_at: nil, default_download_format: nil, description: nil, drive_id: nil, export_formats: nil, file_format: nil, folder_id: nil, has_children: nil, has_content: nil, id: nil, name: nil, owner_id: nil, path: nil, remote_drive_id: nil, remote_folder_id: nil, remote_id: nil, remote_owner_id: nil, size: nil, updated_at: nil, url: nil) @all_parent_folder_ids = all_parent_folder_ids @created_at = created_at @default_download_format = default_download_format @description = description @drive_id = drive_id @export_formats = export_formats @file_format = file_format @folder_id = folder_id @has_children = has_children @has_content = has_content @id = id @name = name @owner_id = owner_id @path = path @remote_drive_id = remote_drive_id @remote_folder_id = remote_folder_id @remote_id = remote_id @remote_owner_id = remote_owner_id @size = size @updated_at = updated_at @url = url end |
Instance Method Details
#==(other) ⇒ Object
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/stack_one/models/shared/files.rb', line 84 def ==(other) return false unless other.is_a? self.class return false unless @all_parent_folder_ids == other.all_parent_folder_ids return false unless @created_at == other.created_at return false unless @default_download_format == other.default_download_format return false unless @description == other.description return false unless @drive_id == other.drive_id return false unless @export_formats == other.export_formats return false unless @file_format == other.file_format return false unless @folder_id == other.folder_id return false unless @has_children == other.has_children return false unless @has_content == other.has_content return false unless @id == other.id return false unless @name == other.name return false unless @owner_id == other.owner_id return false unless @path == other.path return false unless @remote_drive_id == other.remote_drive_id return false unless @remote_folder_id == other.remote_folder_id return false unless @remote_id == other.remote_id return false unless @remote_owner_id == other.remote_owner_id return false unless @size == other.size return false unless @updated_at == other.updated_at return false unless @url == other.url true end |