Method: Bitpesa::Webhook#valid?

Defined in:
lib/bitpesa-sdk/models/webhook.rb

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



87
88
89
90
91
92
# File 'lib/bitpesa-sdk/models/webhook.rb', line 87

def valid?
  return false if @webhook.nil?
  return false if @event.nil?
  return false if @object.nil?
  true
end