Sha256: 741a6b2e1ff58f426d791723fe316dd9cb0a7e66bf67271482de207d88c8abb4
Contents?: true
Size: 571 Bytes
Versions: 41
Compression:
Stored size: 571 Bytes
Contents
require 'fog/core/model' module Fog module Compute class Brightbox class Application < Fog::Model identity :id attribute :url attribute :name attribute :secret def save raise Fog::Errors::Error.new('Resaving an existing object may create a duplicate') if persisted? options = { :name => name }.delete_if {|k,v| v.nil? || v == "" } data = service.create_application(options) merge_attributes(data) true end end end end end
Version data entries
41 entries across 41 versions & 6 rubygems