Class: Net::HTTPResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/fastly/client.rb

Overview

:nodoc: all

Instance Method Summary collapse

Instance Method Details

#statusObject



153
154
155
# File 'lib/fastly/client.rb', line 153

def status
    return self.code.to_i
end

#success?Boolean

Returns:

  • (Boolean)


149
150
151
# File 'lib/fastly/client.rb', line 149

def success?
    return Net::HTTPSuccess === self
end