Method: ClientException#to_s
- Defined in:
- lib/fog/rackspace/client.rb
#to_s ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/fog/rackspace/client.rb', line 19 def to_s a = @msg b = '' b += "#{@scheme}://" if @scheme b += @host if @host b += ":#{@port}" if @port b += @path if @path b += "?#{@query}" if @query b ? b = "#{b} #{@status}" : b = @status.to_s if @status b ? b = "#{b} #{@reason}" : b = "- #{@reason}" if @reason b ? b = "#{b}: device #{@device}" : b = "device #{@device}" if @device b ? "#{a} #{b}" : a end |