Sha256: 8dba09f97bff99e234169aa1886960a15c33bfae5661caad5e86ce45d8e03b1a
Contents?: true
Size: 587 Bytes
Versions: 4
Compression:
Stored size: 587 Bytes
Contents
require "fog/brightbox/model" module Fog module Compute class Brightbox class Application < Fog::Brightbox::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
4 entries across 4 versions & 2 rubygems