Method: TinkoffInvestClient::OperationTrade#valid?

Defined in:
lib/tinkoff_invest_client/models/operation_trade.rb

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



115
116
117
118
119
120
121
# File 'lib/tinkoff_invest_client/models/operation_trade.rb', line 115

def valid?
  return false if @trade_id.nil?
  return false if @date.nil?
  return false if @price.nil?
  return false if @quantity.nil?
  true
end