Class: IB::OutgoingMessages::RequestIds

Inherits:
AbstractMessage show all
Defined in:
lib/ib-ruby/messages.rb

Overview

data = { :number_of_ids => int }

Instance Attribute Summary

Attributes inherited from ExtremelyAbstractMessage

#created_at

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AbstractMessage

#initialize, #send

Methods inherited from ExtremelyAbstractMessage

#to_human

Constructor Details

This class inherits a constructor from IB::OutgoingMessages::AbstractMessage

Class Method Details

.message_idObject



323
324
325
# File 'lib/ib-ruby/messages.rb', line 323

def self.message_id
  8
end

Instance Method Details

#queue(server) ⇒ Object



327
328
329
330
331
332
# File 'lib/ib-ruby/messages.rb', line 327

def queue(server)
  [ self.class.message_id,
    1, # version
    @data[:number_of_ids]
  ]
end