class Fog::SharedFileSystem::OpenStack::Shares

Public Instance Methods

all(options = {}) click to toggle source
# File lib/fog/shared_file_system/openstack/models/shares.rb, line 10
def all(options = {})
  load_response(service.list_shares_detail(options), 'shares')
end
destroy(id) click to toggle source
# File lib/fog/shared_file_system/openstack/models/shares.rb, line 21
def destroy(id)
  share = find_by_id(id)
  share.destroy
end
find_by_id(id) click to toggle source
# File lib/fog/shared_file_system/openstack/models/shares.rb, line 14
def find_by_id(id)
  share_hash = service.get_share(id).body['share']
  new(share_hash.merge(:service => service))
end
Also aliased as: get
get(id)
Alias for: find_by_id