Class: Georgia::Status

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/georgia/status.rb

Constant Summary collapse

PUBLISHED =
'Published'
DRAFT =
'Draft'
PENDING_REVIEW =
'Pending Review'

Instance Method Summary collapse

Instance Method Details

#draft?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'app/models/georgia/status.rb', line 21

def draft?
  self.name == DRAFT
end

#pending_review?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'app/models/georgia/status.rb', line 24

def pending_review?
  self.name == PENDING_REVIEW
end

#published?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'app/models/georgia/status.rb', line 18

def published?
  self.name == PUBLISHED
end