Class: Firecrawl::Models::ProductProfile::Price
- Inherits:
-
Object
- Object
- Firecrawl::Models::ProductProfile::Price
- Defined in:
- lib/firecrawl/models/product_profile.rb
Overview
A monetary value with an optional currency and formatted string.
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#currency ⇒ Object
readonly
Returns the value of attribute currency.
-
#formatted ⇒ Object
readonly
Returns the value of attribute formatted.
Instance Method Summary collapse
-
#initialize(data) ⇒ Price
constructor
A new instance of Price.
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
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
20 21 22 |
# File 'lib/firecrawl/models/product_profile.rb', line 20 def amount @amount end |
#currency ⇒ Object (readonly)
Returns the value of attribute currency.
20 21 22 |
# File 'lib/firecrawl/models/product_profile.rb', line 20 def currency @currency end |
#formatted ⇒ Object (readonly)
Returns the value of attribute formatted.
20 21 22 |
# File 'lib/firecrawl/models/product_profile.rb', line 20 def formatted @formatted end |