lib/ib-ruby/models.rb in ib-ruby-0.7.3 vs lib/ib-ruby/models.rb in ib-ruby-0.7.4
- old
+ new
@@ -1,12 +1,14 @@
module IB
module Models
+ require 'ib-ruby/models/contracts'
+ # Flatten namespace (IB::Models::Option instead of IB::Models::Contracts::Option)
+ include Contracts
+
+ require 'ib-ruby/models/order'
+ require 'ib-ruby/models/combo_leg'
+ require 'ib-ruby/models/execution'
+ require 'ib-ruby/models/bar'
+
end
- Datatypes = Models # Legacy alias
end
-
-require 'ib-ruby/models/order'
-require 'ib-ruby/models/contract'
-require 'ib-ruby/models/combo_leg'
-require 'ib-ruby/models/execution'
-require 'ib-ruby/models/bar'