Class: Kudzu::Agent::Response
- Inherits:
-
Model::Base
- Object
- Model::Base
- Kudzu::Agent::Response
- Includes:
- Model::Page
- Defined in:
- lib/kudzu/agent/response.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#charset ⇒ Object
Returns the value of attribute charset.
-
#digest ⇒ Object
Returns the value of attribute digest.
-
#fetched ⇒ Object
Returns the value of attribute fetched.
-
#mime_type ⇒ Object
Returns the value of attribute mime_type.
-
#redirect_from ⇒ Object
Returns the value of attribute redirect_from.
-
#response_header ⇒ Object
Returns the value of attribute response_header.
-
#response_time ⇒ Object
Returns the value of attribute response_time.
-
#size ⇒ Object
Returns the value of attribute size.
-
#status ⇒ Object
Returns the value of attribute status.
-
#title ⇒ Object
Returns the value of attribute title.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
Methods included from Model::Page
#css?, #decoded_body, #etag, #filtered, #filtered=, #html?, #js?, #last_modified, #parsed_doc, #status_client_error?, #status_gone?, #status_not_found?, #status_not_modified?, #status_redirection?, #status_server_error?, #status_success?, #text?, #xml?
Methods inherited from Model::Base
Constructor Details
This class inherits a constructor from Kudzu::Model::Base
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
6 7 8 |
# File 'lib/kudzu/agent/response.rb', line 6 def body @body end |
#charset ⇒ Object
Returns the value of attribute charset.
6 7 8 |
# File 'lib/kudzu/agent/response.rb', line 6 def charset @charset end |
#digest ⇒ Object
Returns the value of attribute digest.
6 7 8 |
# File 'lib/kudzu/agent/response.rb', line 6 def digest @digest end |
#fetched ⇒ Object
Returns the value of attribute fetched.
6 7 8 |
# File 'lib/kudzu/agent/response.rb', line 6 def fetched @fetched end |
#mime_type ⇒ Object
Returns the value of attribute mime_type.
6 7 8 |
# File 'lib/kudzu/agent/response.rb', line 6 def mime_type @mime_type end |
#redirect_from ⇒ Object
Returns the value of attribute redirect_from.
6 7 8 |
# File 'lib/kudzu/agent/response.rb', line 6 def redirect_from @redirect_from end |
#response_header ⇒ Object
Returns the value of attribute response_header.
6 7 8 |
# File 'lib/kudzu/agent/response.rb', line 6 def response_header @response_header end |
#response_time ⇒ Object
Returns the value of attribute response_time.
6 7 8 |
# File 'lib/kudzu/agent/response.rb', line 6 def response_time @response_time end |
#size ⇒ Object
Returns the value of attribute size.
6 7 8 |
# File 'lib/kudzu/agent/response.rb', line 6 def size @size end |
#status ⇒ Object
Returns the value of attribute status.
6 7 8 |
# File 'lib/kudzu/agent/response.rb', line 6 def status @status end |
#title ⇒ Object
Returns the value of attribute title.
6 7 8 |
# File 'lib/kudzu/agent/response.rb', line 6 def title @title end |
#url ⇒ Object
Returns the value of attribute url.
6 7 8 |
# File 'lib/kudzu/agent/response.rb', line 6 def url @url end |
Instance Method Details
#fetched? ⇒ Boolean
9 10 11 |
# File 'lib/kudzu/agent/response.rb', line 9 def fetched? fetched end |