Class: Crawlberg::DownloadedDocument
- Inherits:
-
Object
- Object
- Crawlberg::DownloadedDocument
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#content_base64 ⇒ String?
readonly
Returns the value of attribute content_base64.
-
#content_hash ⇒ String
readonly
Returns the value of attribute content_hash.
-
#content_path ⇒ String?
readonly
Returns the value of attribute content_path.
-
#filename ⇒ String?
readonly
Returns the value of attribute filename.
-
#headers ⇒ Hash[String, String]
readonly
Returns the value of attribute headers.
-
#mime_type ⇒ String
readonly
Returns the value of attribute mime_type.
-
#size ⇒ Integer
readonly
Returns the value of attribute size.
-
#truncated ⇒ Boolean
readonly
Returns the value of attribute truncated.
-
#url ⇒ String
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ DownloadedDocument
constructor
A new instance of DownloadedDocument.
Constructor Details
#initialize ⇒ DownloadedDocument
Returns a new instance of DownloadedDocument.
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_base64 ⇒ String? (readonly)
Returns the value of attribute content_base64.
263 264 265 |
# File 'sig/types.rbs', line 263 def content_base64 @content_base64 end |
#content_hash ⇒ String (readonly)
Returns the value of attribute content_hash.
259 260 261 |
# File 'sig/types.rbs', line 259 def content_hash @content_hash end |
#content_path ⇒ String? (readonly)
Returns the value of attribute content_path.
262 263 264 |
# File 'sig/types.rbs', line 262 def content_path @content_path end |
#filename ⇒ String? (readonly)
Returns the value of attribute filename.
258 259 260 |
# File 'sig/types.rbs', line 258 def filename @filename end |
#headers ⇒ Hash[String, String] (readonly)
Returns the value of attribute headers.
260 261 262 |
# File 'sig/types.rbs', line 260 def headers @headers end |
#mime_type ⇒ String (readonly)
Returns the value of attribute mime_type.
256 257 258 |
# File 'sig/types.rbs', line 256 def mime_type @mime_type end |
#size ⇒ Integer (readonly)
Returns the value of attribute size.
257 258 259 |
# File 'sig/types.rbs', line 257 def size @size end |
#truncated ⇒ Boolean (readonly)
Returns the value of attribute truncated.
261 262 263 |
# File 'sig/types.rbs', line 261 def truncated @truncated end |
#url ⇒ String (readonly)
Returns the value of attribute url.
255 256 257 |
# File 'sig/types.rbs', line 255 def url @url end |