Sha256: b3ed2bd954df9e453538248b1aede1b54f7121b462ee9746ba8406bb56d14806

Contents?: true

Size: 773 Bytes

Versions: 1

Compression:

Stored size: 773 Bytes

Contents

module EveOnline
  module ESI
    module Models
      class MarketHistory < Base
        def as_json
          {
            date: date,
            order_count: order_count,
            volume: volume,
            highest: highest,
            average: average,
            lowest: lowest
          }
        end

        def date
          date = options['date']

          parse_datetime_with_timezone(date) if date
        end

        def order_count
          options['order_count']
        end

        def volume
          options['volume']
        end

        def highest
          options['highest']
        end

        def average
          options['average']
        end

        def lowest
          options['lowest']
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
eve_online-0.14.0 lib/eve_online/esi/models/market_history.rb