Class: ArticleRevision::Approval::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/article_revision/approval.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors

Returns:

  • (Object)

    the current value of errors



5
6
7
# File 'app/services/article_revision/approval.rb', line 5

def errors
  @errors
end

#revisionObject (readonly)

Returns the value of attribute revision

Returns:

  • (Object)

    the current value of revision



5
6
7
# File 'app/services/article_revision/approval.rb', line 5

def revision
  @revision
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'app/services/article_revision/approval.rb', line 6

def success?
  errors.empty?
end