class Fog::Hetznercloud::Compute::Datacenter

Public Instance Methods

location=(value) click to toggle source
# File lib/fog/hetznercloud/models/compute/datacenter.rb, line 13
def location=(value)
  attributes[:location] = case value
                          when Hash
                            service.locations.new(value)
                          when String
                            service.locations.all(name: value).first
                          when Integer
                            service.locations.get(value)
                          else
                            value
                          end
end