Class: IGMarkets::Market::DealingRules::RuleDetails

Inherits:
IGMarkets::Model show all
Defined in:
lib/ig_markets/market.rb

Overview

Contains specfics for a single dealing rule.

Instance Attribute Summary

Attributes inherited from IGMarkets::Model

#attributes

Instance Method Summary collapse

Methods inherited from IGMarkets::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

#unitSymbol

The unit attribute.

Returns:

  • (Symbol)


10
# File 'lib/ig_markets/market.rb', line 10

attribute :unit, Symbol, allowed_values: %i[percentage points]

#valueFloat

The value attribute.

Returns:

  • (Float)


11
# File 'lib/ig_markets/market.rb', line 11

attribute :value, Float