Class: Firecrawl::Models::ProductProfile::Image

Inherits:
Object
  • Object
show all
Defined in:
lib/firecrawl/models/product_profile.rb

Overview

An image associated with a product or variant.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Image

Returns a new instance of Image.



12
13
14
15
# File 'lib/firecrawl/models/product_profile.rb', line 12

def initialize(data)
  @url = data["url"]
  @alt = data["alt"]
end

Instance Attribute Details

#altObject (readonly)

Returns the value of attribute alt.



10
11
12
# File 'lib/firecrawl/models/product_profile.rb', line 10

def alt
  @alt
end

#urlObject (readonly)

Returns the value of attribute url.



10
11
12
# File 'lib/firecrawl/models/product_profile.rb', line 10

def url
  @url
end