Class: Firecrawl::Models::ProductProfile::Availability
- Inherits:
-
Object
- Object
- Firecrawl::Models::ProductProfile::Availability
- Defined in:
- lib/firecrawl/models/product_profile.rb
Overview
Stock availability information for a variant. Always present.
Instance Attribute Summary collapse
-
#in_stock ⇒ Object
readonly
Returns the value of attribute in_stock.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(data) ⇒ Availability
constructor
A new instance of Availability.
Constructor Details
#initialize(data) ⇒ Availability
Returns a new instance of Availability.
33 34 35 36 37 |
# File 'lib/firecrawl/models/product_profile.rb', line 33 def initialize(data) data ||= {} @in_stock = data["inStock"] || false @text = data["text"] end |
Instance Attribute Details
#in_stock ⇒ Object (readonly)
Returns the value of attribute in_stock.
31 32 33 |
# File 'lib/firecrawl/models/product_profile.rb', line 31 def in_stock @in_stock end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
31 32 33 |
# File 'lib/firecrawl/models/product_profile.rb', line 31 def text @text end |