Class: Xtb::Http::Trades
Overview
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(opened_only) ⇒ Trades
constructor
A new instance of Trades.
Methods inherited from Command
Constructor Details
#initialize(opened_only) ⇒ Trades
8 9 10 11 12 |
# File 'lib/xtb/http/trades.rb', line 8 def initialize(opened_only) @opened_only = opened_only super() end |
Instance Method Details
#call ⇒ Object
14 15 16 |
# File 'lib/xtb/http/trades.rb', line 14 def call super.return_data.map { |record| Xtb::TradeRecord.new(**record) } end |