Class: SchwabRb::DataObjects::InitialBalances
- Inherits:
-
Object
- Object
- SchwabRb::DataObjects::InitialBalances
- Defined in:
- lib/schwab_rb/data_objects/account.rb
Instance Attribute Summary collapse
-
#account_value ⇒ Object
readonly
Returns the value of attribute account_value.
-
#accrued_interest ⇒ Object
readonly
Returns the value of attribute accrued_interest.
-
#available_funds_non_marginable_trade ⇒ Object
readonly
Returns the value of attribute available_funds_non_marginable_trade.
-
#bond_value ⇒ Object
readonly
Returns the value of attribute bond_value.
-
#buying_power ⇒ Object
readonly
Returns the value of attribute buying_power.
-
#cash_available_for_trading ⇒ Object
readonly
Returns the value of attribute cash_available_for_trading.
-
#cash_balance ⇒ Object
readonly
Returns the value of attribute cash_balance.
-
#cash_receipts ⇒ Object
readonly
Returns the value of attribute cash_receipts.
-
#day_trading_buying_power ⇒ Object
readonly
Returns the value of attribute day_trading_buying_power.
-
#day_trading_buying_power_call ⇒ Object
readonly
Returns the value of attribute day_trading_buying_power_call.
-
#day_trading_equity_call ⇒ Object
readonly
Returns the value of attribute day_trading_equity_call.
-
#equity ⇒ Object
readonly
Returns the value of attribute equity.
-
#equity_percentage ⇒ Object
readonly
Returns the value of attribute equity_percentage.
-
#is_in_call ⇒ Object
readonly
Returns the value of attribute is_in_call.
-
#liquidation_value ⇒ Object
readonly
Returns the value of attribute liquidation_value.
-
#long_margin_value ⇒ Object
readonly
Returns the value of attribute long_margin_value.
-
#long_option_market_value ⇒ Object
readonly
Returns the value of attribute long_option_market_value.
-
#long_stock_value ⇒ Object
readonly
Returns the value of attribute long_stock_value.
-
#maintenance_call ⇒ Object
readonly
Returns the value of attribute maintenance_call.
-
#maintenance_requirement ⇒ Object
readonly
Returns the value of attribute maintenance_requirement.
-
#margin ⇒ Object
readonly
Returns the value of attribute margin.
-
#margin_balance ⇒ Object
readonly
Returns the value of attribute margin_balance.
-
#margin_equity ⇒ Object
readonly
Returns the value of attribute margin_equity.
-
#money_market_fund ⇒ Object
readonly
Returns the value of attribute money_market_fund.
-
#mutual_fund_value ⇒ Object
readonly
Returns the value of attribute mutual_fund_value.
-
#pending_deposits ⇒ Object
readonly
Returns the value of attribute pending_deposits.
-
#reg_t_call ⇒ Object
readonly
Returns the value of attribute reg_t_call.
-
#short_balance ⇒ Object
readonly
Returns the value of attribute short_balance.
-
#short_margin_value ⇒ Object
readonly
Returns the value of attribute short_margin_value.
-
#short_option_market_value ⇒ Object
readonly
Returns the value of attribute short_option_market_value.
-
#short_stock_value ⇒ Object
readonly
Returns the value of attribute short_stock_value.
-
#total_cash ⇒ Object
readonly
Returns the value of attribute total_cash.
Class Method Summary collapse
Instance Method Summary collapse
Constructor Details
#initialize(accrued_interest:, cash_balance:, cash_receipts:, long_option_market_value:, liquidation_value:, money_market_fund:, available_funds_non_marginable_trade:, bond_value:, buying_power:, cash_available_for_trading:, day_trading_buying_power:, day_trading_buying_power_call:, day_trading_equity_call:, equity:, equity_percentage:, long_margin_value:, long_stock_value:, maintenance_call:, maintenance_requirement:, margin:, margin_equity:, mutual_fund_value:, reg_t_call:, short_margin_value:, short_option_market_value:, short_stock_value:, total_cash:, is_in_call:, pending_deposits:, margin_balance:, short_balance:, account_value:) ⇒ InitialBalances
Returns a new instance of InitialBalances.
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'lib/schwab_rb/data_objects/account.rb', line 60 def initialize( accrued_interest:, cash_balance:, cash_receipts:, long_option_market_value:, liquidation_value:, money_market_fund:, available_funds_non_marginable_trade:, bond_value:, buying_power:, cash_available_for_trading:, day_trading_buying_power:, day_trading_buying_power_call:, day_trading_equity_call:, equity:, equity_percentage:, long_margin_value:, long_stock_value:, maintenance_call:, maintenance_requirement:, margin:, margin_equity:, mutual_fund_value:, reg_t_call:, short_margin_value:, short_option_market_value:, short_stock_value:, total_cash:, is_in_call:, pending_deposits:, margin_balance:, short_balance:, account_value: ) @accrued_interest = accrued_interest @cash_balance = cash_balance @cash_receipts = cash_receipts @long_option_market_value = long_option_market_value @liquidation_value = liquidation_value @money_market_fund = money_market_fund @available_funds_non_marginable_trade = available_funds_non_marginable_trade @bond_value = bond_value @buying_power = @cash_available_for_trading = cash_available_for_trading @day_trading_buying_power = @day_trading_buying_power_call = @day_trading_equity_call = day_trading_equity_call @equity = equity @equity_percentage = equity_percentage @long_margin_value = long_margin_value @long_stock_value = long_stock_value @maintenance_call = maintenance_call @maintenance_requirement = maintenance_requirement @margin = margin @margin_equity = margin_equity @mutual_fund_value = mutual_fund_value @reg_t_call = reg_t_call @short_margin_value = short_margin_value @short_option_market_value = short_option_market_value @short_stock_value = short_stock_value @total_cash = total_cash @is_in_call = is_in_call @pending_deposits = pending_deposits @margin_balance = margin_balance @short_balance = short_balance @account_value = account_value end |
Instance Attribute Details
#account_value ⇒ Object (readonly)
Returns the value of attribute account_value.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def account_value @account_value end |
#accrued_interest ⇒ Object (readonly)
Returns the value of attribute accrued_interest.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def accrued_interest @accrued_interest end |
#available_funds_non_marginable_trade ⇒ Object (readonly)
Returns the value of attribute available_funds_non_marginable_trade.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def available_funds_non_marginable_trade @available_funds_non_marginable_trade end |
#bond_value ⇒ Object (readonly)
Returns the value of attribute bond_value.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def bond_value @bond_value end |
#buying_power ⇒ Object (readonly)
Returns the value of attribute buying_power.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def @buying_power end |
#cash_available_for_trading ⇒ Object (readonly)
Returns the value of attribute cash_available_for_trading.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def cash_available_for_trading @cash_available_for_trading end |
#cash_balance ⇒ Object (readonly)
Returns the value of attribute cash_balance.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def cash_balance @cash_balance end |
#cash_receipts ⇒ Object (readonly)
Returns the value of attribute cash_receipts.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def cash_receipts @cash_receipts end |
#day_trading_buying_power ⇒ Object (readonly)
Returns the value of attribute day_trading_buying_power.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def @day_trading_buying_power end |
#day_trading_buying_power_call ⇒ Object (readonly)
Returns the value of attribute day_trading_buying_power_call.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def @day_trading_buying_power_call end |
#day_trading_equity_call ⇒ Object (readonly)
Returns the value of attribute day_trading_equity_call.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def day_trading_equity_call @day_trading_equity_call end |
#equity ⇒ Object (readonly)
Returns the value of attribute equity.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def equity @equity end |
#equity_percentage ⇒ Object (readonly)
Returns the value of attribute equity_percentage.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def equity_percentage @equity_percentage end |
#is_in_call ⇒ Object (readonly)
Returns the value of attribute is_in_call.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def is_in_call @is_in_call end |
#liquidation_value ⇒ Object (readonly)
Returns the value of attribute liquidation_value.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def liquidation_value @liquidation_value end |
#long_margin_value ⇒ Object (readonly)
Returns the value of attribute long_margin_value.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def long_margin_value @long_margin_value end |
#long_option_market_value ⇒ Object (readonly)
Returns the value of attribute long_option_market_value.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def long_option_market_value @long_option_market_value end |
#long_stock_value ⇒ Object (readonly)
Returns the value of attribute long_stock_value.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def long_stock_value @long_stock_value end |
#maintenance_call ⇒ Object (readonly)
Returns the value of attribute maintenance_call.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def maintenance_call @maintenance_call end |
#maintenance_requirement ⇒ Object (readonly)
Returns the value of attribute maintenance_requirement.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def maintenance_requirement @maintenance_requirement end |
#margin ⇒ Object (readonly)
Returns the value of attribute margin.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def margin @margin end |
#margin_balance ⇒ Object (readonly)
Returns the value of attribute margin_balance.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def margin_balance @margin_balance end |
#margin_equity ⇒ Object (readonly)
Returns the value of attribute margin_equity.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def margin_equity @margin_equity end |
#money_market_fund ⇒ Object (readonly)
Returns the value of attribute money_market_fund.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def money_market_fund @money_market_fund end |
#mutual_fund_value ⇒ Object (readonly)
Returns the value of attribute mutual_fund_value.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def mutual_fund_value @mutual_fund_value end |
#pending_deposits ⇒ Object (readonly)
Returns the value of attribute pending_deposits.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def pending_deposits @pending_deposits end |
#reg_t_call ⇒ Object (readonly)
Returns the value of attribute reg_t_call.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def reg_t_call @reg_t_call end |
#short_balance ⇒ Object (readonly)
Returns the value of attribute short_balance.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def short_balance @short_balance end |
#short_margin_value ⇒ Object (readonly)
Returns the value of attribute short_margin_value.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def short_margin_value @short_margin_value end |
#short_option_market_value ⇒ Object (readonly)
Returns the value of attribute short_option_market_value.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def short_option_market_value @short_option_market_value end |
#short_stock_value ⇒ Object (readonly)
Returns the value of attribute short_stock_value.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def short_stock_value @short_stock_value end |
#total_cash ⇒ Object (readonly)
Returns the value of attribute total_cash.
9 10 11 |
# File 'lib/schwab_rb/data_objects/account.rb', line 9 def total_cash @total_cash end |
Class Method Details
.build(data) ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/schwab_rb/data_objects/account.rb', line 22 def build(data) new( accrued_interest: data[:accruedInterest], cash_balance: data[:cashBalance], cash_receipts: data[:cashReceipts], long_option_market_value: data[:longOptionMarketValue], liquidation_value: data[:liquidationValue], money_market_fund: data[:moneyMarketFund], available_funds_non_marginable_trade: data[:availableFundsNonMarginableTrade], bond_value: data[:bondValue], buying_power: data[:buyingPower], cash_available_for_trading: data[:cashAvailableForTrading], day_trading_buying_power: data[:dayTradingBuyingPower], day_trading_buying_power_call: data[:dayTradingBuyingPowerCall], day_trading_equity_call: data[:dayTradingEquityCall], equity: data[:equity], equity_percentage: data[:equityPercentage], long_margin_value: data[:longMarginValue], long_stock_value: data[:longStockValue], maintenance_call: data[:maintenanceCall], maintenance_requirement: data[:maintenanceRequirement], margin: data[:margin], margin_equity: data[:marginEquity], mutual_fund_value: data[:mutualFundValue], reg_t_call: data[:regTCall], short_margin_value: data[:shortMarginValue], short_option_market_value: data[:shortOptionMarketValue], short_stock_value: data[:shortStockValue], total_cash: data[:totalCash], is_in_call: data[:isInCall], pending_deposits: data[:pendingDeposits], margin_balance: data[:marginBalance], short_balance: data[:shortBalance], account_value: data[:accountValue] ) end |