Class: IGMarkets::DealConfirmation::AffectedDeal

Inherits:
Model
  • Object
show all
Defined in:
lib/ig_markets/deal_confirmation.rb

Overview

Contains details on a specific deal that was affected by a dealing event. Returned by #affected_deals.

Instance Attribute Summary

Attributes inherited from Model

#attributes

Instance Method Summary collapse

Methods inherited from Model

#==, allowed_values, attribute, attribute_type, attribute_value_allowed?, defined_attribute_names, deprecated_attribute, #initialize, #initialize_copy, #inspect, #to_h, valid_attribute?

Constructor Details

This class inherits a constructor from IGMarkets::Model

Instance Method Details

#deal_idObject

The deal_id attribute.

Returns:



6
# File 'lib/ig_markets/deal_confirmation.rb', line 6

attribute :deal_id

#statusSymbol

The status attribute.

Returns:

  • (Symbol)


7
# File 'lib/ig_markets/deal_confirmation.rb', line 7

attribute :status, Symbol, allowed_values: %i[amended deleted fully_closed opened partially_closed]