Sha256: da8570917b6fd0118945c9e95faa0fbc8ff1566725d878c3e179393fbce9dd17

Contents?: true

Size: 414 Bytes

Versions: 1

Compression:

Stored size: 414 Bytes

Contents

require_relative 'base'

module IEX
  module Resources
    class Sectors < Resource
      property 'type'
      property 'name'
      property 'performance'
      property 'last_updated', from: 'lastUpdated'

      def self.get(stock_symbol)
        Base.symbol(stock_symbol) do
          IEX::Api::Sectors.get(stock_symbol).map do |data|
            new data
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
iex-ruby-client-0.4.4 lib/iex/resources/sectors.rb