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])
  • truncated: (Boolean)
  • content_path: (String)
  • content_base64: (String)


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

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

Instance Attribute Details

#content_base64String? (readonly)

Returns the value of attribute content_base64.

Returns:

  • (String, nil)


263
264
265
# File 'sig/types.rbs', line 263

def content_base64
  @content_base64
end

#content_hashString (readonly)

Returns the value of attribute content_hash.

Returns:

  • (String)


259
260
261
# File 'sig/types.rbs', line 259

def content_hash
  @content_hash
end

#content_pathString? (readonly)

Returns the value of attribute content_path.

Returns:

  • (String, nil)


262
263
264
# File 'sig/types.rbs', line 262

def content_path
  @content_path
end

#filenameString? (readonly)

Returns the value of attribute filename.

Returns:

  • (String, nil)


258
259
260
# File 'sig/types.rbs', line 258

def filename
  @filename
end

#headersHash[String, String] (readonly)

Returns the value of attribute headers.

Returns:

  • (Hash[String, String])


260
261
262
# File 'sig/types.rbs', line 260

def headers
  @headers
end

#mime_typeString (readonly)

Returns the value of attribute mime_type.

Returns:

  • (String)


256
257
258
# File 'sig/types.rbs', line 256

def mime_type
  @mime_type
end

#sizeInteger (readonly)

Returns the value of attribute size.

Returns:

  • (Integer)


257
258
259
# File 'sig/types.rbs', line 257

def size
  @size
end

#truncatedBoolean (readonly)

Returns the value of attribute truncated.

Returns:

  • (Boolean)


261
262
263
# File 'sig/types.rbs', line 261

def truncated
  @truncated
end

#urlString (readonly)

Returns the value of attribute url.

Returns:

  • (String)


255
256
257
# File 'sig/types.rbs', line 255

def url
  @url
end