Class: DropletKit::Image
- Defined in:
- lib/droplet_kit/models/image.rb
Constant Summary
Constants inherited from BaseModel
BaseModel::DO_NAMESPACE, BaseModel::UNSUPPORTED_COLLECTIONS
Instance Attribute Summary collapse
-
#created_at ⇒ String
A time value given in ISO8601 combined date and time format that represents when the Image was created.
-
#distribution ⇒ String
This attribute describes the base distribution used for this image.
-
#id ⇒ Fixnum
A unique number that can be used to identify and reference a specific image.
-
#min_disk_size ⇒ Fixnum
The minimum ‘disk’ required for a size to use this image.
-
#name ⇒ String
The display name that has been given to an image.
-
#public ⇒ Boolean
This is a boolean value that indicates whether the image in question is public or not.
-
#regions ⇒ Array<String>
This attribute is an array of the regions that the image is available in.
-
#size_gigabytes ⇒ Fixnum
The size of the image in gigabytes.
-
#slug ⇒ String
A uniquely identifying string that is associated with each of the DigitalOcean-provided public images.
-
#type ⇒ String
The kind of image, describing the duration of how long the image is stored.
Method Summary
Methods inherited from BaseModel
#collection_name, from_identifier, from_urn, #identifier, #inspect, #urn, valid_urn?
Instance Attribute Details
#created_at ⇒ String
Returns A time value given in ISO8601 combined date and time format that represents when the Image was created.
53 |
# File 'lib/droplet_kit/models/image.rb', line 53 attribute :created_at |
#distribution ⇒ String
Returns This attribute describes the base distribution used for this image.
18 |
# File 'lib/droplet_kit/models/image.rb', line 18 attribute :distribution |
#id ⇒ Fixnum
Returns A unique number that can be used to identify and reference a specific image.
8 |
# File 'lib/droplet_kit/models/image.rb', line 8 attribute :id |
#min_disk_size ⇒ Fixnum
Returns The minimum ‘disk’ required for a size to use this image.
43 |
# File 'lib/droplet_kit/models/image.rb', line 43 attribute :min_disk_size |
#name ⇒ String
Returns The display name that has been given to an image. This is what is shown in the control panel and is generally a descriptive title for the image in question.
13 |
# File 'lib/droplet_kit/models/image.rb', line 13 attribute :name |
#public ⇒ Boolean
Returns This is a boolean value that indicates whether the image in question is public or not. An image that is public is available to all accounts. A non-public image is only accessible from your account.
28 |
# File 'lib/droplet_kit/models/image.rb', line 28 attribute :public |
#regions ⇒ Array<String>
Returns This attribute is an array of the regions that the image is available in. The regions are represented by their identifying slug values.
33 |
# File 'lib/droplet_kit/models/image.rb', line 33 attribute :regions |
#size_gigabytes ⇒ Fixnum
Returns The size of the image in gigabytes.
48 |
# File 'lib/droplet_kit/models/image.rb', line 48 attribute :size_gigabytes |
#slug ⇒ String
Returns A uniquely identifying string that is associated with each of the DigitalOcean-provided public images. These can be used to reference a public image as an alternative to the numeric id.
23 |
# File 'lib/droplet_kit/models/image.rb', line 23 attribute :slug |
#type ⇒ String
Returns The kind of image, describing the duration of how long the image is stored. This is either “snapshot” or “backup”.
38 |
# File 'lib/droplet_kit/models/image.rb', line 38 attribute :type |