class Fog::OpenStack::Volume
Public Class Methods
new(args = {})
click to toggle source
Fog::OpenStack::Image.new()
will return a Fog::OpenStack::Volume::V3
or a Fog::OpenStack::Volume::V2
or a
Fog::OpenStack::Volume::V1, choosing the V3 by default, as V2 is deprecated since OpenStackWallaby and V1 is deprecated since OpenStack Juno
Calls superclass method
# File lib/fog/openstack/volume.rb, line 22 def self.new(args = {}) @openstack_auth_uri = URI.parse(args[:openstack_auth_url]) if args[:openstack_auth_url] if inspect == 'Fog::OpenStack::Volume' Fog::OpenStack::Volume::V3.new(args) \ || Fog::OpenStack::Volume::V2.new(args) \ || Fog::OpenStack::Volume::V1.new(args) else super end end