Sha256: ef8692b93e4aa79c147cdd3a0d8e8149e35f130e50c255b25e9fbfbc2c79366b
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
module Fog module Brightbox class Compute class Collaboration < Fog::Brightbox::Model identity :id attribute :status attribute :email attribute :role attribute :role_label attribute :account attribute :user attribute :inviter def account_id account["id"] || account[:id] end def save raise Fog::Errors::Error.new("Resaving an existing object may create a duplicate") if identity options = { :role => role, :email => email }.delete_if { |_k, v| v.nil? || v == "" } data = service.create_collaboration(options) merge_attributes(data) true end def resend requires :identity data = service.resend_collaboration(identity) merge_attributes(data) true end def destroy requires :identity data = service.destroy_collaboration(identity) merge_attributes(data) true end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-brightbox-1.0.0.rc2 | lib/fog/brightbox/models/compute/collaboration.rb |