lib/fog/oraclecloud/models/database/snapshots.rb in fog-oraclecloud-0.1.12 vs lib/fog/oraclecloud/models/database/snapshots.rb in fog-oraclecloud-0.1.13

- old
+ new

@@ -1,22 +1,22 @@ -require 'fog/core/collection' - -module Fog - module OracleCloud - class Database - class Snapshots < Fog::Collection - - model Fog::OracleCloud::Database::Snapshot - - def all(db_name) - data = service.list_snapshots(db_name).body - load(data) - end - - def get(db_name, snapshot_name) - new(service.get_snapshot(db_name, snapshot_name).body) - end - - end - end - end -end +require 'fog/core/collection' + +module Fog + module OracleCloud + class Database + class Snapshots < Fog::Collection + + model Fog::OracleCloud::Database::Snapshot + + def all(db_name) + data = service.list_snapshots(db_name).body + load(data) + end + + def get(db_name, snapshot_name) + new(service.get_snapshot(db_name, snapshot_name).body) + end + + end + end + end +end