Class: SecEdgar::Transaction

Inherits:
Struct
  • Object
show all
Defined in:
lib/sec_edgar/transaction.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#acquired_or_disposed_codeObject

Returns the value of attribute acquired_or_disposed_code

Returns:

  • (Object)

    the current value of 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

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



2
3
4
# File 'lib/sec_edgar/transaction.rb', line 2

def code
  @code
end

#direct_or_indirect_codeObject

Returns the value of attribute direct_or_indirect_code

Returns:

  • (Object)

    the current value of 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_involvedObject

Returns the value of attribute equity_swap_involved

Returns:

  • (Object)

    the current value of equity_swap_involved



2
3
4
# File 'lib/sec_edgar/transaction.rb', line 2

def equity_swap_involved
  @equity_swap_involved
end

#form_typeObject

Returns the value of attribute form_type

Returns:

  • (Object)

    the current value of form_type



2
3
4
# File 'lib/sec_edgar/transaction.rb', line 2

def form_type
  @form_type
end

#nature_of_ownershipObject

Returns the value of attribute nature_of_ownership

Returns:

  • (Object)

    the current value of nature_of_ownership



2
3
4
# File 'lib/sec_edgar/transaction.rb', line 2

def nature_of_ownership
  @nature_of_ownership
end

#price_per_shareObject

Returns the value of attribute price_per_share

Returns:

  • (Object)

    the current value of price_per_share



2
3
4
# File 'lib/sec_edgar/transaction.rb', line 2

def price_per_share
  @price_per_share
end

#security_titleObject

Returns the value of attribute security_title

Returns:

  • (Object)

    the current value of security_title



2
3
4
# File 'lib/sec_edgar/transaction.rb', line 2

def security_title
  @security_title
end

#sharesObject

Returns the value of attribute shares

Returns:

  • (Object)

    the current value of shares



2
3
4
# File 'lib/sec_edgar/transaction.rb', line 2

def shares
  @shares
end

#shares_afterObject

Returns the value of attribute shares_after

Returns:

  • (Object)

    the current value of shares_after



2
3
4
# File 'lib/sec_edgar/transaction.rb', line 2

def shares_after
  @shares_after
end

#transaction_dateObject

Returns the value of attribute transaction_date

Returns:

  • (Object)

    the current value of transaction_date



2
3
4
# File 'lib/sec_edgar/transaction.rb', line 2

def transaction_date
  @transaction_date
end

Instance Method Details

#holdings_changeObject



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