Class: Alpaca::Trade::Api::NonTradeActivity

Inherits:
Object
  • Object
show all
Defined in:
lib/alpaca/trade/api/non_trade_activity.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typeObject (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

#dateObject (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

#idObject (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_ammountObject (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_amountObject (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

#qtyObject (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

#symbolObject (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