Class: Alpaca::Trade::Api::NonTradeActivity
- Inherits:
-
Object
- Object
- Alpaca::Trade::Api::NonTradeActivity
- Defined in:
- lib/alpaca/trade/api/non_trade_activity.rb
Instance Attribute Summary collapse
-
#activity_type ⇒ Object
readonly
Returns the value of attribute activity_type.
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#net_ammount ⇒ Object
readonly
Returns the value of attribute net_ammount.
-
#per_share_amount ⇒ Object
readonly
Returns the value of attribute per_share_amount.
-
#qty ⇒ Object
readonly
Returns the value of attribute qty.
-
#symbol ⇒ Object
readonly
Returns the value of attribute symbol.
Instance Method Summary collapse
-
#initialize(json) ⇒ NonTradeActivity
constructor
A new instance of NonTradeActivity.
Constructor Details
#initialize(json) ⇒ NonTradeActivity
Returns a new instance of NonTradeActivity.
9 10 11 12 13 14 15 16 17 |
# File 'lib/alpaca/trade/api/non_trade_activity.rb', line 9 def initialize(json) @id = json['id'] @activity_type = json['activity_type'] @date = json['date'] @net_ammount = json['net_ammount'] @symbol = json['symbol'] @qty = json['qty'] @per_share_amount = json['per_share_amount'] end |
Instance Attribute Details
#activity_type ⇒ Object (readonly)
Returns the value of attribute activity_type.
7 8 9 |
# File 'lib/alpaca/trade/api/non_trade_activity.rb', line 7 def activity_type @activity_type end |
#date ⇒ Object (readonly)
Returns the value of attribute date.
7 8 9 |
# File 'lib/alpaca/trade/api/non_trade_activity.rb', line 7 def date @date end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
7 8 9 |
# File 'lib/alpaca/trade/api/non_trade_activity.rb', line 7 def id @id end |
#net_ammount ⇒ Object (readonly)
Returns the value of attribute net_ammount.
7 8 9 |
# File 'lib/alpaca/trade/api/non_trade_activity.rb', line 7 def net_ammount @net_ammount end |
#per_share_amount ⇒ Object (readonly)
Returns the value of attribute per_share_amount.
7 8 9 |
# File 'lib/alpaca/trade/api/non_trade_activity.rb', line 7 def per_share_amount @per_share_amount end |
#qty ⇒ Object (readonly)
Returns the value of attribute qty.
7 8 9 |
# File 'lib/alpaca/trade/api/non_trade_activity.rb', line 7 def qty @qty end |
#symbol ⇒ Object (readonly)
Returns the value of attribute symbol.
7 8 9 |
# File 'lib/alpaca/trade/api/non_trade_activity.rb', line 7 def symbol @symbol end |