Sha256: 728f5ed2dc16e6c2d2a9a4e18eae99ceb566c814997fc3c095d8e18e8b1fb5ea
Contents?: true
Size: 939 Bytes
Versions: 46
Compression:
Stored size: 939 Bytes
Contents
require 'fog/core/model' module Fog module Compute class Brightbox class UserCollaboration < Fog::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
46 entries across 46 versions & 4 rubygems