Class: Nephophobia::Response::Image

Inherits:
Object
  • Object
show all
Defined in:
lib/nephophobia/response/image.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#architectureObject (readonly)

Returns the value of attribute architecture.



4
5
6
# File 'lib/nephophobia/response/image.rb', line 4

def architecture
  @architecture
end

#attributesObject

Returns the value of attribute attributes.



7
8
9
# File 'lib/nephophobia/response/image.rb', line 7

def attributes
  @attributes
end

#image_idObject (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_locationObject (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_idObject (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_typeObject (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_publicObject (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_idObject (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

#stateObject (readonly)

Returns the value of attribute state.



5
6
7
# File 'lib/nephophobia/response/image.rb', line 5

def state
  @state
end