Class: Colombo::Image
Instance Attribute Summary collapse
-
#distribution ⇒ Object
Returns the value of attribute distribution.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Methods inherited from Resource
Constructor Details
This class inherits a constructor from Colombo::Resource
Instance Attribute Details
#distribution ⇒ Object
Returns the value of attribute distribution.
6 7 8 |
# File 'lib/colombo/image.rb', line 6 def distribution @distribution end |
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/colombo/image.rb', line 6 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/colombo/image.rb', line 6 def name @name end |
Instance Method Details
#destroy(confirm = false) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/colombo/image.rb', line 8 def destroy(confirm=false) raise 'must pass true for confirm' unless confirm @client.request(:get, "/images/#{self.id}/destroy/") do |response| return response['event_id'] end end |