Class: Publication::Saver::Result
- Inherits:
-
Data
- Object
- Data
- Publication::Saver::Result
- Defined in:
- app/services/publication/saver.rb
Overview
Service object: result.
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#publication ⇒ Object
readonly
Returns the value of attribute publication.
-
#saved ⇒ Object
readonly
Returns the value of attribute saved.
Instance Method Summary collapse
-
#initialize(saved: nil, publication: nil, errors: nil) ⇒ Result
constructor
A new instance of Result.
- #saved? ⇒ Boolean
Constructor Details
#initialize(saved: nil, publication: nil, errors: nil) ⇒ Result
Returns a new instance of Result.
6 |
# File 'app/services/publication/saver.rb', line 6 def initialize(saved: nil, publication: nil, errors: nil) = super |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors
5 6 7 |
# File 'app/services/publication/saver.rb', line 5 def errors @errors end |
#publication ⇒ Object (readonly)
Returns the value of attribute publication
5 6 7 |
# File 'app/services/publication/saver.rb', line 5 def publication @publication end |
#saved ⇒ Object (readonly)
Returns the value of attribute saved
5 6 7 |
# File 'app/services/publication/saver.rb', line 5 def saved @saved end |
Instance Method Details
#saved? ⇒ Boolean
7 |
# File 'app/services/publication/saver.rb', line 7 def saved? = saved |