Class: IGMarkets::Account::Balance

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

Overview

Contains details on the balance of an IGMarkets::Account, used by #balance.

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

#availableFloat

The available attribute.

Returns:

  • (Float)

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

attribute :available, Float

#balanceFloat

The balance attribute.

Returns:

  • (Float)

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

attribute :balance, Float

#depositFloat

The deposit attribute.

Returns:

  • (Float)

8
# File 'lib/ig_markets/account.rb', line 8

attribute :deposit, Float

#profit_lossFloat

The profit_loss attribute.

Returns:

  • (Float)

9
# File 'lib/ig_markets/account.rb', line 9

attribute :profit_loss, Float