Class: IGMarkets::CLI::Tables::SprintMarketPositionsTable

Inherits:
Table
  • Object
show all
Defined in:
lib/ig_markets/cli/tables/sprint_market_positions_table.rb

Overview

Helper class that prints out an array of SprintMarketPosition instances in a table.

Instance Method Summary collapse

Methods inherited from Table

#lines, #to_s

Constructor Details

#initialize(sprints, options = {}) ⇒ SprintMarketPositionsTable

Returns a new instance of SprintMarketPositionsTable.



6
7
8
9
10
# File 'lib/ig_markets/cli/tables/sprint_market_positions_table.rb', line 6

def initialize(sprints, options = {})
  super

  @markets = options.fetch :markets
end