Class: Railspress::ContentImportService::Result
- Inherits:
-
Struct
- Object
- Struct
- Railspress::ContentImportService::Result
- Defined in:
- app/services/railspress/content_import_service.rb
Instance Attribute Summary collapse
-
#created ⇒ Object
Returns the value of attribute created.
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#restored ⇒ Object
Returns the value of attribute restored.
-
#updated ⇒ Object
Returns the value of attribute updated.
Instance Method Summary collapse
Instance Attribute Details
#created ⇒ Object
Returns the value of attribute created
9 10 11 |
# File 'app/services/railspress/content_import_service.rb', line 9 def created @created end |
#errors ⇒ Object
Returns the value of attribute errors
9 10 11 |
# File 'app/services/railspress/content_import_service.rb', line 9 def errors @errors end |
#restored ⇒ Object
Returns the value of attribute restored
9 10 11 |
# File 'app/services/railspress/content_import_service.rb', line 9 def restored @restored end |
#updated ⇒ Object
Returns the value of attribute updated
9 10 11 |
# File 'app/services/railspress/content_import_service.rb', line 9 def updated @updated end |
Instance Method Details
#success? ⇒ Boolean
14 15 16 |
# File 'app/services/railspress/content_import_service.rb', line 14 def success? errors.empty? end |
#total_processed ⇒ Object
10 11 12 |
# File 'app/services/railspress/content_import_service.rb', line 10 def total_processed created + updated + restored end |