Closed 34code closed 1 year ago
Hi @34code , you should do something like:
first_seven_offers.each do |offer|
puts "Offer price: #{offer.total_currency} #{offer.total_amount}"
end
You can take a look in the list of attributes here: https://github.com/duffelhq/duffel-api-ruby/blob/main/lib/duffel_api/resources/offer.rb#L7-L26
The docs of what each attribute means you can find here: https://duffel.com/docs/api/v1/offers/schema#offers-schema-total-amount
Have a great day!
Now, how can I get the price out of the
first_seven_offers
?