Sha256: 4382eb2b57b890565887be81cd6d7a1d38d3f9347a502d05a848a6872de506d1

Contents?: true

Size: 224 Bytes

Versions: 4

Compression:

Stored size: 224 Bytes

Contents

module IEX
  module Resources
    class CurrencyRate < Resource
      property 'symbol'
      property 'rate'
      property 'timestamp', transform_with: ->(v) { Date.strptime((v.to_f / 1000).to_s, '%s') }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
iex-ruby-client-2.1.0 lib/iex/resources/currency_rate.rb
iex-ruby-client-2.0.0 lib/iex/resources/currency_rate.rb
iex-ruby-client-1.6.0 lib/iex/resources/currency_rate.rb
iex-ruby-client-1.5.0 lib/iex/resources/currency_rate.rb