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



140
141
142
# File 'lib/fastly/client.rb', line 140

def status
    return self.code.to_i
end

#success?Boolean

Returns:

  • (Boolean)


136
137
138
# File 'lib/fastly/client.rb', line 136

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