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)


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

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?

Returns the value of attribute content_base64.

Returns:

  • (String, nil)


134
135
136
# File 'sig/types.rbs', line 134

def content_base64
  @content_base64
end

#content_hashString?

Returns the value of attribute content_hash.

Returns:

  • (String, nil)


130
131
132
# File 'sig/types.rbs', line 130

def content_hash
  @content_hash
end

#content_pathString?

Returns the value of attribute content_path.

Returns:

  • (String, nil)


133
134
135
# File 'sig/types.rbs', line 133

def content_path
  @content_path
end

#filenameString?

Returns the value of attribute filename.

Returns:

  • (String, nil)


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

def filename
  @filename
end

#headersHash[String, String]?

Returns the value of attribute headers.

Returns:

  • (Hash[String, String], nil)


131
132
133
# File 'sig/types.rbs', line 131

def headers
  @headers
end

#mime_typeString?

Returns the value of attribute mime_type.

Returns:

  • (String, nil)


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

def mime_type
  @mime_type
end

#sizeInteger?

Returns the value of attribute size.

Returns:

  • (Integer, nil)


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

def size
  @size
end

#truncatedBoolean?

Returns the value of attribute truncated.

Returns:

  • (Boolean, nil)


132
133
134
# File 'sig/types.rbs', line 132

def truncated
  @truncated
end

#urlString?

Returns the value of attribute url.

Returns:

  • (String, nil)


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

def url
  @url
end