Class: Connection

Inherits:
Object
  • Object
show all
Extended by:
Sunbro
Defined in:
lib/sunbro/connection.rb

Constant Summary

Constants included from Sunbro

Sunbro::MAX_RETRIES, Sunbro::VERSION

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Sunbro

close_http_connections, fetch_with_connection, get_page, render_page

Instance Attribute Details

#dhttpObject (readonly)

Returns the value of attribute dhttp.



3
4
5
# File 'lib/sunbro/connection.rb', line 3

def dhttp
  @dhttp
end

#httpObject (readonly)

Returns the value of attribute http.



3
4
5
# File 'lib/sunbro/connection.rb', line 3

def http
  @http
end

Instance Method Details

#closeObject



5
6
7
# File 'lib/sunbro/connection.rb', line 5

def close
  close_http_connections
end