Class: Firecrawl::Models::ProductProfile::Sale

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

Overview

Sale pricing for a variant, carrying the pre-sale original price.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Sale

Returns a new instance of Sale.



44
45
46
# File 'lib/firecrawl/models/product_profile.rb', line 44

def initialize(data)
  @original_price = data["originalPrice"] && Price.new(data["originalPrice"])
end

Instance Attribute Details

#original_priceObject (readonly)

Returns the value of attribute original_price.



42
43
44
# File 'lib/firecrawl/models/product_profile.rb', line 42

def original_price
  @original_price
end