Module: GoogleExtensions::AttachedDisk

Defined in:
app/lib/google_extensions/attached_disk.rb

Instance Method Summary collapse

Instance Method Details

#_deleteObject



9
10
# File 'app/lib/google_extensions/attached_disk.rb', line 9

def _delete
end

#idObject



6
7
# File 'app/lib/google_extensions/attached_disk.rb', line 6

def id
end

#insert_attrsObject



12
13
14
15
16
# File 'app/lib/google_extensions/attached_disk.rb', line 12

def insert_attrs
  attrs = { name: device_name, size_gb: disk_size_gb }
  attrs[:source_image] = source if source.present?
  attrs
end

#persisted?Boolean

Returns:

  • (Boolean)


3
4
# File 'app/lib/google_extensions/attached_disk.rb', line 3

def persisted?
end

#size_gbObject



18
19
20
# File 'app/lib/google_extensions/attached_disk.rb', line 18

def size_gb
  disk_size_gb
end