Class: Kudzu::Agent::Response

Inherits:
Model::Base show all
Includes:
Model::Page
Defined in:
lib/kudzu/agent/response.rb

Instance Attribute Summary collapse

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

#initialize

Constructor Details

This class inherits a constructor from Kudzu::Model::Base

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



6
7
8
# File 'lib/kudzu/agent/response.rb', line 6

def body
  @body
end

#charsetObject

Returns the value of attribute charset.



6
7
8
# File 'lib/kudzu/agent/response.rb', line 6

def charset
  @charset
end

#digestObject

Returns the value of attribute digest.



6
7
8
# File 'lib/kudzu/agent/response.rb', line 6

def digest
  @digest
end

#fetchedObject

Returns the value of attribute fetched.



6
7
8
# File 'lib/kudzu/agent/response.rb', line 6

def fetched
  @fetched
end

#mime_typeObject

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_fromObject

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_headerObject

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_timeObject

Returns the value of attribute response_time.



6
7
8
# File 'lib/kudzu/agent/response.rb', line 6

def response_time
  @response_time
end

#sizeObject

Returns the value of attribute size.



6
7
8
# File 'lib/kudzu/agent/response.rb', line 6

def size
  @size
end

#statusObject

Returns the value of attribute status.



6
7
8
# File 'lib/kudzu/agent/response.rb', line 6

def status
  @status
end

#titleObject

Returns the value of attribute title.



6
7
8
# File 'lib/kudzu/agent/response.rb', line 6

def title
  @title
end

#urlObject

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

Returns:

  • (Boolean)


9
10
11
# File 'lib/kudzu/agent/response.rb', line 9

def fetched?
  fetched
end