Class: IGMarkets::Activity
Overview
Contains details on a single activity that occurred on an IG Markets account. Returned by DealingPlatform::AccountMethods#activities.
Defined Under Namespace
Classes: Details
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
-
#channel ⇒ Symbol
The channel attribute.
-
#date ⇒ Time
The date attribute.
-
#deal_id ⇒ Object
The deal_id attribute.
-
#description ⇒ Object
The description attribute.
-
#details ⇒ Details
The details attribute.
-
#epic ⇒ String
The epic attribute.
-
#period ⇒ Time
The period attribute.
-
#status ⇒ Symbol
The status attribute.
-
#type ⇒ Symbol
The type attribute.
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
#channel ⇒ Symbol
The channel attribute.
36 |
# File 'lib/ig_markets/activity.rb', line 36 attribute :channel, Symbol, allowed_values: %i[dealer mobile public_fix_api public_web_api system web] |
#date ⇒ Time
The date attribute.
37 |
# File 'lib/ig_markets/activity.rb', line 37 attribute :date, Time, format: '%FT%T' |
#deal_id ⇒ Object
The deal_id attribute.
38 |
# File 'lib/ig_markets/activity.rb', line 38 attribute :deal_id |
#description ⇒ Object
The description attribute.
39 |
# File 'lib/ig_markets/activity.rb', line 39 attribute :description |
#details ⇒ Details
The details attribute.
40 |
# File 'lib/ig_markets/activity.rb', line 40 attribute :details, Details |
#epic ⇒ String
The epic attribute.
41 |
# File 'lib/ig_markets/activity.rb', line 41 attribute :epic, String, regex: Regex::EPIC |
#period ⇒ Time
The period attribute.
42 |
# File 'lib/ig_markets/activity.rb', line 42 attribute :period, Time, nil_if: %w[- DFB], format: ['%FT%T', '%d-%b-%y', '%b-%y'] |
#status ⇒ Symbol
The status attribute.
43 |
# File 'lib/ig_markets/activity.rb', line 43 attribute :status, Symbol, allowed_values: %i[accepted rejected unknown] |
#type ⇒ Symbol
The type attribute.
44 |
# File 'lib/ig_markets/activity.rb', line 44 attribute :type, Symbol, allowed_values: %i[edit_stop_and_limit position system working_order] |