lib/ig_markets/dealing_platform/position_methods.rb
def position_from_attributes(attributes)
        attributes = attributes.fetch(:position).merge market: attributes.fetch(:market)

        @dealing_platform.instantiate_models Position, attributes
      end
# Initializes this helper class with the specified dealing platform.
#
# @param [DealingPlatform] dealing_platform The dealing platform.
Initializes this helper class with the specified dealing platform.
Initializes this helper class with the specified dealing platform .
def position_from_attributes(attributes)
        attributes = attributes.fetch(:position).merge market: attributes.fetch(:market)
        @dealing_platform.instantiate_models Position, attributes
      end
def position_from_attributes ( attributes ) attributes = attributes . fetch ( :position ) . merge market : attributes . fetch ( :market ) @dealing_platform . instantiate_models Position , attributes end
Initializes this helper class with the specified dealing platform.
Initializes this helper class with the specified dealing platform .
attributes
dealing_platform The dealing platform.
dealing_platform The dealing platform .