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.
7 |
# File 'app/services/publication/saver.rb', line 7 def initialize(saved: nil, publication: nil, errors: nil) = super |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors
6 7 8 |
# File 'app/services/publication/saver.rb', line 6 def errors @errors end |
#publication ⇒ Object (readonly)
Returns the value of attribute publication
6 7 8 |
# File 'app/services/publication/saver.rb', line 6 def publication @publication end |
#saved ⇒ Object (readonly)
Returns the value of attribute saved
6 7 8 |
# File 'app/services/publication/saver.rb', line 6 def saved @saved end |
Instance Method Details
#saved? ⇒ Boolean
8 |
# File 'app/services/publication/saver.rb', line 8 def saved? = saved |