Sha256: e16cd61f6e0c5219b239a89cdec756bbaa4d9b5cea0caaf7f7bf0636e2267c64
Contents?: true
Size: 953 Bytes
Versions: 4
Compression:
Stored size: 953 Bytes
Contents
require "fog/brightbox/model" module Fog module Compute class Brightbox class UserCollaboration < 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 accept requires :identity data = service.accept_user_collaboration(identity) merge_attributes(data) true end def reject requires :identity data = service.reject_user_collaboration(identity) merge_attributes(data) true end def destroy requires :identity data = service.destroy_user_collaboration(identity) merge_attributes(data) true end end end end end
Version data entries
4 entries across 4 versions & 2 rubygems