Sha256: f2b92095268ceca0d701651a465d63c546daebb126e234573c09ae4824a9c128

Contents?: true

Size: 413 Bytes

Versions: 3

Compression:

Stored size: 413 Bytes

Contents

module Duracloud
  class SpaceAcls < Properties

    def self.property?(prop)
      space_acl?(prop)
    end

    attr_reader :space

    def initialize(space)
      super()
      @space = space
      if space.persisted?
        response = Client.get_space_acls(space.space_id, **query)
        update filter(response.headers)
      end
    end

    def query
      { storeID: space.store_id }
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
duracloud-client-0.1.2 lib/duracloud/space_acls.rb
duracloud-client-0.1.1 lib/duracloud/space_acls.rb
duracloud-client-0.1.0 lib/duracloud/space_acls.rb