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