Method: AsposeCellsCloud::GoogleDriveStorageFile#initialize
- Defined in:
- lib/aspose_cells_cloud/models/google_drive_storage_file.rb
#initialize(attributes = {}) ⇒ GoogleDriveStorageFile
Initializes the object
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/aspose_cells_cloud/models/google_drive_storage_file.rb', line 73 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'MimeType') self.mime_type = attributes[:'MimeType'] end if attributes.has_key?(:'Name') self.name = attributes[:'Name'] end if attributes.has_key?(:'IsFolder') self.is_folder = attributes[:'IsFolder'] end if attributes.has_key?(:'ModifiedDate') self.modified_date = attributes[:'ModifiedDate'] end if attributes.has_key?(:'Size') self.size = attributes[:'Size'] end if attributes.has_key?(:'Path') self.path = attributes[:'Path'] end end |