Class: Zaala::API::Rate

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/zaala/api/types.rb

Class Method Summary collapse

Class Method Details

.from_message(h) ⇒ Object



515
516
517
518
519
520
521
# File 'lib/zaala/api/types.rb', line 515

def self.from_message(h)
  Rate.new({
    amount: h[:rateAmount],
    date: h[:rateDate],
    interest_amount: h[:interestAmount],
  })
end