Class: QC::Image
Instance Attribute Summary
Attributes inherited from DataType
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from DataType
Constructor Details
This class inherits a constructor from QC::DataType
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class QC::DataType
Class Method Details
.describe(p = {}, &block) ⇒ Object
180 181 182 183 184 185 186 |
# File 'lib/qc.rb', line 180 def Image.describe p = {}, &block _p = p.dup unless _p.has_key? 'provider' _p['provider'] = 'system' end super _p, &block end |
Instance Method Details
#<=>(o) ⇒ Object
192 193 194 |
# File 'lib/qc.rb', line 192 def <=> o @values['image_id'] <=> o.image_id end |
#to_s ⇒ Object
188 189 190 |
# File 'lib/qc.rb', line 188 def to_s [@values['image_id'], @values['image_name']].to_yaml end |