Class: Fog::Storage::OracleCloud::Objects
- Inherits:
-
Collection
- Object
- Collection
- Fog::Storage::OracleCloud::Objects
- Defined in:
- lib/fog/oraclecloud/models/storage/objects.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
10 11 12 13 14 |
# File 'lib/fog/oraclecloud/models/storage/objects.rb', line 10 def all requires :container objects = service.get_container_with_objects(container.name) load(objects.body) end |
#get(name) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/fog/oraclecloud/models/storage/objects.rb', line 16 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 |