Sha256: b1010812c71dcc3ed6ae8ffb396d2ce17f832f4e07e47a9a10f2382fb26a7a07

Contents?: true

Size: 551 Bytes

Versions: 12

Compression:

Stored size: 551 Bytes

Contents

module Fog
  module Storage
    class OracleCloud
      class Object < Fog::Model
        identity  :name

        attribute :content_type
        attribute :bytes
        attribute :last_modified
        attribute :hash

        def save
          requires :name
        #  data = service.create_container(name)
         # pp data
         # merge_attributes(data.headers)
        end 
        
        def destroy
          requires :name
        #  service.delete_container(name)
        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/object.rb
fog-oraclecloud-0.1.11 lib/fog/oraclecloud/models/storage/object.rb
fog-oraclecloud-0.1.10 lib/fog/oraclecloud/models/storage/object.rb
fog-oraclecloud-0.1.9 lib/fog/oraclecloud/models/storage/object.rb
fog-oraclecloud-0.1.8 lib/fog/oraclecloud/models/storage/object.rb
fog-oraclecloud-0.1.7 lib/fog/oraclecloud/models/storage/object.rb
fog-oraclecloud-0.1.6 lib/fog/oraclecloud/models/storage/object.rb
fog-oraclecloud-0.1.5 lib/fog/oraclecloud/models/storage/object.rb
fog-oraclecloud-0.1.4 lib/fog/oraclecloud/models/storage/object.rb
fog-oraclecloud-0.1.3 lib/fog/oraclecloud/models/storage/object.rb
fog-oraclecloud-0.1.2 lib/fog/oraclecloud/models/storage/object.rb
fog-oraclecloud-0.1.1 lib/fog/oraclecloud/models/storage/object.rb