lib/ib-ruby/models/contract.rb in ib-ruby-0.7.9 vs lib/ib-ruby/models/contract.rb in ib-ruby-0.7.10

- old
+ new

@@ -93,14 +93,14 @@ :message => "should be valid security identifier" validates_numericality_of :multiplier, :strike, :allow_nil => true def default_attributes - {:con_id => 0, - :strike => 0.0, - :right => :none, # Not an option - :exchange => 'SMART', - :include_expired => false, }.merge super + super.merge :con_id => 0, + :strike => 0.0, + :right => :none, # Not an option + :exchange => 'SMART', + :include_expired => false end # This returns an Array of data from the given contract. # Different messages serialize contracts differently. Go figure. # Note that it does NOT include the combo legs.