Class: UserRequest

Inherits:
ApplicationRecord show all
Defined in:
app/models/user_request.rb

Direct Known Subclasses

FileInventoryRequest

Constant Summary collapse

PENDING =
"pending"
COMPLETED =
"completed"
STALE =
"stale"

Instance Method Summary collapse

Instance Method Details

#complete?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'app/models/user_request.rb', line 12

def complete?
  state == COMPLETED
end