Sha256: ab5343c1c3cfba51c8f8883aa54862d0be815ca0febc6bedf23c45c80dfd1cca

Contents?: true

Size: 327 Bytes

Versions: 8

Compression:

Stored size: 327 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 'related', transform_with: ->(v) { v.split(',') if v.is_a?(String) }
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
iex-ruby-client-1.4.0 lib/iex/resources/news.rb
iex-ruby-client-1.3.0 lib/iex/resources/news.rb
iex-ruby-client-1.2.0 lib/iex/resources/news.rb
iex-ruby-client-1.1.2 lib/iex/resources/news.rb
iex-ruby-client-1.1.1 lib/iex/resources/news.rb
iex-ruby-client-1.1.0 lib/iex/resources/news.rb
iex-ruby-client-1.0.1 lib/iex/resources/news.rb
iex-ruby-client-1.0.0 lib/iex/resources/news.rb