Sha256: cd31b5f96ea1c10e089b16ad5730e743c94f1df7e1cd499a5e4c1fefc2be351a
Contents?: true
Size: 570 Bytes
Versions: 27
Compression:
Stored size: 570 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
27 entries across 27 versions & 3 rubygems