lib/fog/oraclecloud/models/storage/objects.rb in fog-oraclecloud-0.1.12 vs lib/fog/oraclecloud/models/storage/objects.rb in fog-oraclecloud-0.1.13

- old
+ new

@@ -1,27 +1,27 @@ -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 +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