Class: Crawlberg::DownloadedDocument

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDownloadedDocument

Returns a new instance of DownloadedDocument.

Parameters:

  • url: (String)
  • mime_type: (String)
  • size: (Integer)
  • filename: (String)
  • content_hash: (String)
  • headers: (Hash[String, String])


129
# File 'sig/types.rbs', line 129

def initialize: (?url: String, ?mime_type: String, ?size: Integer, ?filename: String, ?content_hash: String, ?headers: Hash[String, String]) -> void

Instance Attribute Details

#content_hashString?

Returns the value of attribute content_hash.

Returns:

  • (String, nil)


126
127
128
# File 'sig/types.rbs', line 126

def content_hash
  @content_hash
end

#filenameString?

Returns the value of attribute filename.

Returns:

  • (String, nil)


125
126
127
# File 'sig/types.rbs', line 125

def filename
  @filename
end

#headersHash[String, String]?

Returns the value of attribute headers.

Returns:

  • (Hash[String, String], nil)


127
128
129
# File 'sig/types.rbs', line 127

def headers
  @headers
end

#mime_typeString?

Returns the value of attribute mime_type.

Returns:

  • (String, nil)


123
124
125
# File 'sig/types.rbs', line 123

def mime_type
  @mime_type
end

#sizeInteger?

Returns the value of attribute size.

Returns:

  • (Integer, nil)


124
125
126
# File 'sig/types.rbs', line 124

def size
  @size
end

#urlString?

Returns the value of attribute url.

Returns:

  • (String, nil)


122
123
124
# File 'sig/types.rbs', line 122

def url
  @url
end