lib/ig_markets/dealing_platform/position_methods.rb
# Checks that attributes associated with the guaranteed stop are valid.
Checks that attributes associated with the guaranteed stop are valid.
Checks that attributes associated with the guaranteed stop are valid .
def validate_guaranteed_stop_constraints
          return if !guaranteed_stop || (stop_level.nil? ^ stop_distance.nil?)
          raise ArgumentError, 'set exactly one of stop_level or stop_distance when guaranteed_stop is true'
        end
def validate_guaranteed_stop_constraints return if ! guaranteed_stop || ( stop_level . nil? ^ stop_distance . nil? ) raise ArgumentError , 'set exactly one of stop_level or stop_distance when guaranteed_stop is true' end
Checks that attributes associated with the guaranteed stop are valid.
Checks that attributes associated with the guaranteed stop are valid .