Class: Firecrawl::Models::ProductProfile::Image
- Inherits:
-
Object
- Object
- Firecrawl::Models::ProductProfile::Image
- Defined in:
- lib/firecrawl/models/product_profile.rb
Overview
An image associated with a product or variant.
Instance Attribute Summary collapse
-
#alt ⇒ Object
readonly
Returns the value of attribute alt.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(data) ⇒ Image
constructor
A new instance of Image.
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
#alt ⇒ Object (readonly)
Returns the value of attribute alt.
10 11 12 |
# File 'lib/firecrawl/models/product_profile.rb', line 10 def alt @alt end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
10 11 12 |
# File 'lib/firecrawl/models/product_profile.rb', line 10 def url @url end |