Class: InspectUser
- Inherits:
-
Object
- Object
- InspectUser
- Includes:
- Interactor::Organizer
- Defined in:
- lib/inspect_user.rb
Instance Method Summary collapse
Instance Method Details
#validate_input ⇒ Object
8 9 10 11 12 13 |
# File 'lib/inspect_user.rb', line 8 def validate_input if context.username.nil? context.error = "Username can't be blank." context.fail! end end |