Class: Publication::Saver::Result
- Inherits:
-
Data
- Object
- Data
- Publication::Saver::Result
- Defined in:
- app/services/publication/saver.rb
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.
4 |
# File 'app/services/publication/saver.rb', line 4 def initialize(saved: nil, publication: nil, errors: nil) = super |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors
3 4 5 |
# File 'app/services/publication/saver.rb', line 3 def errors @errors end |
#publication ⇒ Object (readonly)
Returns the value of attribute publication
3 4 5 |
# File 'app/services/publication/saver.rb', line 3 def publication @publication end |
#saved ⇒ Object (readonly)
Returns the value of attribute saved
3 4 5 |
# File 'app/services/publication/saver.rb', line 3 def saved @saved end |
Instance Method Details
#saved? ⇒ Boolean
5 |
# File 'app/services/publication/saver.rb', line 5 def saved? = saved |