Class: ArticleRevision::Approval::Result
- Inherits:
-
Data
- Object
- Data
- ArticleRevision::Approval::Result
- Defined in:
- app/services/article_revision/approval.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#revision ⇒ Object
readonly
Returns the value of attribute revision.
Instance Method Summary collapse
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors
5 6 7 |
# File 'app/services/article_revision/approval.rb', line 5 def errors @errors end |
#revision ⇒ Object (readonly)
Returns the value of attribute revision
5 6 7 |
# File 'app/services/article_revision/approval.rb', line 5 def revision @revision end |
Instance Method Details
#success? ⇒ Boolean
6 7 8 |
# File 'app/services/article_revision/approval.rb', line 6 def success? errors.empty? end |