Class: Nephophobia::Response::Image
- Inherits:
-
Object
- Object
- Nephophobia::Response::Image
- Defined in:
- lib/nephophobia/response/image.rb
Instance Attribute Summary collapse
-
#architecture ⇒ Object
readonly
Returns the value of attribute architecture.
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#image_id ⇒ Object
readonly
Returns the value of attribute image_id.
-
#image_location ⇒ Object
readonly
Returns the value of attribute image_location.
-
#image_owner_id ⇒ Object
readonly
Returns the value of attribute image_owner_id.
-
#image_type ⇒ Object
readonly
Returns the value of attribute image_type.
-
#is_public ⇒ Object
readonly
Returns the value of attribute is_public.
-
#kernel_id ⇒ Object
readonly
Returns the value of attribute kernel_id.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Image
constructor
A new instance of Image.
Constructor Details
#initialize(attributes) ⇒ Image
Returns a new instance of Image.
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/nephophobia/response/image.rb', line 9 def initialize attributes @attributes = attributes @architecture = attributes['architecture'] @id = attributes['id'] @image_id = attributes['imageId'] @image_location = attributes['imageLocation'] @image_owner_id = attributes['imageOwnerId'] @image_type = attributes['imageType'] @is_public = attributes['isPublic'] @kernel_id = attributes['kernelId'] @state = attributes['imageState'] end |
Instance Attribute Details
#architecture ⇒ Object (readonly)
Returns the value of attribute architecture.
4 5 6 |
# File 'lib/nephophobia/response/image.rb', line 4 def architecture @architecture end |
#attributes ⇒ Object
Returns the value of attribute attributes.
7 8 9 |
# File 'lib/nephophobia/response/image.rb', line 7 def attributes @attributes end |
#image_id ⇒ Object (readonly)
Returns the value of attribute image_id.
4 5 6 |
# File 'lib/nephophobia/response/image.rb', line 4 def image_id @image_id end |
#image_location ⇒ Object (readonly)
Returns the value of attribute image_location.
4 5 6 |
# File 'lib/nephophobia/response/image.rb', line 4 def image_location @image_location end |
#image_owner_id ⇒ Object (readonly)
Returns the value of attribute image_owner_id.
4 5 6 |
# File 'lib/nephophobia/response/image.rb', line 4 def image_owner_id @image_owner_id end |
#image_type ⇒ Object (readonly)
Returns the value of attribute image_type.
5 6 7 |
# File 'lib/nephophobia/response/image.rb', line 5 def image_type @image_type end |
#is_public ⇒ Object (readonly)
Returns the value of attribute is_public.
5 6 7 |
# File 'lib/nephophobia/response/image.rb', line 5 def is_public @is_public end |
#kernel_id ⇒ Object (readonly)
Returns the value of attribute kernel_id.
5 6 7 |
# File 'lib/nephophobia/response/image.rb', line 5 def kernel_id @kernel_id end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
5 6 7 |
# File 'lib/nephophobia/response/image.rb', line 5 def state @state end |