231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
|
# File 'lib/megam/core/flavors.rb', line 231
def from_hash(o)
@id = o[:id] if o.has_key?(:id)
@org_id = o[:org_id] if o.has_key?(:org_id)
@account_id = o[:account_id] if o.has_key?(:account_id)
@name = o[:name] if o.has_key?(:name)
@cpu = o[:cpu] if o.has_key?(:cpu)
@ram = o[:ram] if o.has_key?(:ram)
@disk = o[:disk] if o.has_key?(:disk)
@regions = o[:regions] if o.has_key?(:regions)
@price = o[:price] if o.has_key?(:price)
@properties = o[:properties] if o.has_key?(:properties)
@category = o[:category] if o.has_key?(:category)
@status = o[:status] if o.has_key?(:status)
@created_at = o[:created_at] if o.has_key?(:created_at)
@updated_at = o[:updated_at] if o.has_key?(:updated_at)
self
end
|