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

- old
+ new

@@ -1,24 +1,24 @@ -module Fog - module Storage - class OracleCloud - class Containers < Fog::Collection - - model Fog::Storage::OracleCloud::Container - - def all - containers = service.list_containers().body - load(containers) - 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 Containers < Fog::Collection + + model Fog::Storage::OracleCloud::Container + + def all + containers = service.list_containers().body + load(containers) + 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