Class: Crawlberg::DownloadedAsset

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDownloadedAsset

Returns a new instance of DownloadedAsset.

Parameters:

  • url: (String)
  • content_hash: (String)
  • mime_type: (String)
  • size: (Integer)
  • asset_category: (AssetCategory)
  • html_tag: (String)


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

def initialize: (?url: String, ?content_hash: String, ?mime_type: String, ?size: Integer, ?asset_category: AssetCategory, ?html_tag: String) -> void

Instance Attribute Details

#asset_categoryAssetCategory?

Returns the value of attribute asset_category.

Returns:



308
309
310
# File 'sig/types.rbs', line 308

def asset_category
  @asset_category
end

#content_hashString?

Returns the value of attribute content_hash.

Returns:

  • (String, nil)


305
306
307
# File 'sig/types.rbs', line 305

def content_hash
  @content_hash
end

#html_tagString?

Returns the value of attribute html_tag.

Returns:

  • (String, nil)


309
310
311
# File 'sig/types.rbs', line 309

def html_tag
  @html_tag
end

#mime_typeString?

Returns the value of attribute mime_type.

Returns:

  • (String, nil)


306
307
308
# File 'sig/types.rbs', line 306

def mime_type
  @mime_type
end

#sizeInteger?

Returns the value of attribute size.

Returns:

  • (Integer, nil)


307
308
309
# File 'sig/types.rbs', line 307

def size
  @size
end

#urlString?

Returns the value of attribute url.

Returns:

  • (String, nil)


304
305
306
# File 'sig/types.rbs', line 304

def url
  @url
end