Class: SecEdgar::Transaction
- Inherits:
-
Struct
- Object
- Struct
- SecEdgar::Transaction
- Defined in:
- lib/sec_edgar/transaction.rb
Instance Attribute Summary collapse
-
#acquired_or_disposed_code ⇒ Object
Returns the value of attribute acquired_or_disposed_code.
-
#code ⇒ Object
Returns the value of attribute code.
-
#direct_or_indirect_code ⇒ Object
Returns the value of attribute direct_or_indirect_code.
-
#equity_swap_involved ⇒ Object
Returns the value of attribute equity_swap_involved.
-
#form_type ⇒ Object
Returns the value of attribute form_type.
-
#nature_of_ownership ⇒ Object
Returns the value of attribute nature_of_ownership.
-
#price_per_share ⇒ Object
Returns the value of attribute price_per_share.
-
#security_title ⇒ Object
Returns the value of attribute security_title.
-
#shares ⇒ Object
Returns the value of attribute shares.
-
#shares_after ⇒ Object
Returns the value of attribute shares_after.
-
#transaction_date ⇒ Object
Returns the value of attribute transaction_date.
Instance Method Summary collapse
Instance Attribute Details
#acquired_or_disposed_code ⇒ Object
Returns the value of attribute acquired_or_disposed_code
2 3 4 |
# File 'lib/sec_edgar/transaction.rb', line 2 def acquired_or_disposed_code @acquired_or_disposed_code end |
#code ⇒ Object
Returns the value of attribute code
2 3 4 |
# File 'lib/sec_edgar/transaction.rb', line 2 def code @code end |
#direct_or_indirect_code ⇒ Object
Returns the value of attribute direct_or_indirect_code
2 3 4 |
# File 'lib/sec_edgar/transaction.rb', line 2 def direct_or_indirect_code @direct_or_indirect_code end |
#equity_swap_involved ⇒ Object
Returns the value of attribute equity_swap_involved
2 3 4 |
# File 'lib/sec_edgar/transaction.rb', line 2 def equity_swap_involved @equity_swap_involved end |
#form_type ⇒ Object
Returns the value of attribute form_type
2 3 4 |
# File 'lib/sec_edgar/transaction.rb', line 2 def form_type @form_type end |
#nature_of_ownership ⇒ Object
Returns the value of attribute nature_of_ownership
2 3 4 |
# File 'lib/sec_edgar/transaction.rb', line 2 def nature_of_ownership @nature_of_ownership end |
#price_per_share ⇒ Object
Returns the value of attribute price_per_share
2 3 4 |
# File 'lib/sec_edgar/transaction.rb', line 2 def price_per_share @price_per_share end |
#security_title ⇒ Object
Returns the value of attribute security_title
2 3 4 |
# File 'lib/sec_edgar/transaction.rb', line 2 def security_title @security_title end |
#shares ⇒ Object
Returns the value of attribute shares
2 3 4 |
# File 'lib/sec_edgar/transaction.rb', line 2 def shares @shares end |
#shares_after ⇒ Object
Returns the value of attribute shares_after
2 3 4 |
# File 'lib/sec_edgar/transaction.rb', line 2 def shares_after @shares_after end |
#transaction_date ⇒ Object
Returns the value of attribute transaction_date
2 3 4 |
# File 'lib/sec_edgar/transaction.rb', line 2 def transaction_date @transaction_date end |
Instance Method Details
#holdings_change ⇒ Object
15 16 17 18 |
# File 'lib/sec_edgar/transaction.rb', line 15 def holdings_change return 0 if shares_after == 0 shares.fdiv(shares_after) end |