Class: Review

Inherits:
MLS::Model show all
Defined in:
lib/mls/models/review.rb

Instance Method Summary collapse

Instance Method Details

#approved?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/mls/models/review.rb', line 6

def approved?
  approval == true
end

#pending?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/mls/models/review.rb', line 14

def pending?
  approval == nil
end

#rejected?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/mls/models/review.rb', line 10

def rejected?
  approval == false
end