Method: UpBankingClient::CashbackObject#valid?

Defined in:
lib/up_banking/models/cashback_object.rb

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



92
93
94
95
96
# File 'lib/up_banking/models/cashback_object.rb', line 92

def valid?
  return false if @description.nil?
  return false if @amount.nil?
  true
end