Class: Fog::Compute::Brightbox::Application
- Inherits:
-
Brightbox::Model
- Object
- Model
- Brightbox::Model
- Fog::Compute::Brightbox::Application
- Defined in:
- lib/fog/brightbox/models/compute/application.rb
Instance Method Summary collapse
Methods included from Brightbox::ModelHelper
#collection_name, #resource_name
Instance Method Details
#save ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/brightbox/models/compute/application.rb', line 12 def save raise Fog::Errors::Error.new('Resaving an existing object may create a duplicate') if persisted? = { :name => name }.delete_if { |k, v| v.nil? || v == "" } data = service.create_application() merge_attributes(data) true end |