Sha256: b9734b200418a76deed70f1932961de6f41f70966a8229cc1ab7c46edd127cfe

Contents?: true

Size: 606 Bytes

Versions: 12

Compression:

Stored size: 606 Bytes

Contents

module Fog
  module Storage
    class OracleCloud
      class Objects < Fog::Collection

        attribute :container

      	model Fog::Storage::OracleCloud::Object

      	def all
          requires :container
          objects = service.get_container_with_objects(container.name)
          load(objects.body)
        end

        def get(name)
          data = service.get_container(name).headers
          # The storage cloud service doesn't actually return the name. Add it back in
          data['name'] = name
          new(data)
        end

      end
    end

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.12 lib/fog/oraclecloud/models/storage/objects.rb
fog-oraclecloud-0.1.11 lib/fog/oraclecloud/models/storage/objects.rb
fog-oraclecloud-0.1.10 lib/fog/oraclecloud/models/storage/objects.rb
fog-oraclecloud-0.1.9 lib/fog/oraclecloud/models/storage/objects.rb
fog-oraclecloud-0.1.8 lib/fog/oraclecloud/models/storage/objects.rb
fog-oraclecloud-0.1.7 lib/fog/oraclecloud/models/storage/objects.rb
fog-oraclecloud-0.1.6 lib/fog/oraclecloud/models/storage/objects.rb
fog-oraclecloud-0.1.5 lib/fog/oraclecloud/models/storage/objects.rb
fog-oraclecloud-0.1.4 lib/fog/oraclecloud/models/storage/objects.rb
fog-oraclecloud-0.1.3 lib/fog/oraclecloud/models/storage/objects.rb
fog-oraclecloud-0.1.2 lib/fog/oraclecloud/models/storage/objects.rb
fog-oraclecloud-0.1.1 lib/fog/oraclecloud/models/storage/objects.rb