Class: Fog::Compute::Clodo::Image
- Defined in:
- lib/fog/clodo/models/compute/image.rb
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
-
#initialize(new_attributes) ⇒ Image
constructor
A new instance of Image.
- #ready? ⇒ Boolean
Methods inherited from Model
#inspect, #reload, #to_json, #wait_for
Methods included from Attributes::ClassMethods
#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes
Methods included from Attributes::InstanceMethods
#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #requires, #requires_one
Constructor Details
#initialize(new_attributes) ⇒ Image
Returns a new instance of Image.
18 19 20 21 |
# File 'lib/fog/clodo/models/compute/image.rb', line 18 def initialize(new_attributes) super(new_attributes) merge_attributes(new_attributes['_attr']) if new_attributes['_attr'] end |
Instance Method Details
#ready? ⇒ Boolean
23 24 25 |
# File 'lib/fog/clodo/models/compute/image.rb', line 23 def ready? status == 'ACTIVE' end |