Module: Broadway::Publishable::InstanceMethods
- Defined in:
- lib/broadway/mixins/publishable.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#state ⇒ Object
Returns the value of attribute state.
Instance Method Summary collapse
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date.
8 9 10 |
# File 'lib/broadway/mixins/publishable.rb', line 8 def date @date end |
#state ⇒ Object
Returns the value of attribute state.
8 9 10 |
# File 'lib/broadway/mixins/publishable.rb', line 8 def state @state end |
Instance Method Details
#draft? ⇒ Boolean
31 32 33 |
# File 'lib/broadway/mixins/publishable.rb', line 31 def draft? state == "draft" end |
#published? ⇒ Boolean
27 28 29 |
# File 'lib/broadway/mixins/publishable.rb', line 27 def published? state == "published" end |