Method: Fastly::SudoRequest#valid?

Defined in:
lib/fastly/models/sudo_request.rb

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



96
97
98
99
100
# File 'lib/fastly/models/sudo_request.rb', line 96

def valid?
  return false if @username.nil?
  return false if @password.nil?
  true
end