Sha256: ecbed0de247642b20af254d01dbc89af71f034a4f55066081e498403633fade0

Contents?: true

Size: 437 Bytes

Versions: 5

Compression:

Stored size: 437 Bytes

Contents

module IEX
  module Resources
    class News < Resource
      property 'datetime', transform_with: ->(v) { Time.at(v / 1000.0) }
      property 'headline'
      property 'source'
      property 'url'
      property 'summary'
      property 'image'
      property 'related', transform_with: ->(v) { v.split(',') if v.is_a?(String) }
      property 'paywalled', from: 'hasPaywall'
      property 'language', from: 'lang'
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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