lib/fog/oraclecloud/models/compute/instances.rb in fog-oraclecloud-0.1.12 vs lib/fog/oraclecloud/models/compute/instances.rb in fog-oraclecloud-0.1.13

- old
+ new

@@ -1,22 +1,22 @@ -require 'fog/core/collection' - -module Fog - module Compute - class OracleCloud - class Instances < Fog::Collection - - model Fog::Compute::OracleCloud::Instance - - def get(name) - data = service.get_instance(name).body - new(data) - end - - def all - data = service.list_instances().body['result'] - load(data) - end - end - end - end -end +require 'fog/core/collection' + +module Fog + module Compute + class OracleCloud + class Instances < Fog::Collection + + model Fog::Compute::OracleCloud::Instance + + def get(name) + data = service.get_instance(name).body + new(data) + end + + def all + data = service.list_instances().body['result'] + load(data) + end + end + end + end +end