Class: Firecrawl::Models::ProductProfile::Price

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

Overview

A monetary value with an optional currency and formatted string.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Price

Returns a new instance of Price.



22
23
24
25
26
# File 'lib/firecrawl/models/product_profile.rb', line 22

def initialize(data)
  @amount = data["amount"]
  @currency = data["currency"]
  @formatted = data["formatted"]
end

Instance Attribute Details

#amountObject (readonly)

Returns the value of attribute amount.



20
21
22
# File 'lib/firecrawl/models/product_profile.rb', line 20

def amount
  @amount
end

#currencyObject (readonly)

Returns the value of attribute currency.



20
21
22
# File 'lib/firecrawl/models/product_profile.rb', line 20

def currency
  @currency
end

#formattedObject (readonly)

Returns the value of attribute formatted.



20
21
22
# File 'lib/firecrawl/models/product_profile.rb', line 20

def formatted
  @formatted
end