Class: OpenLoam::Import::Result
- Inherits:
-
Struct
- Object
- Struct
- OpenLoam::Import::Result
- Defined in:
- lib/open_loam/import.rb
Instance Attribute Summary collapse
-
#created ⇒ Object
Returns the value of attribute created.
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#failed ⇒ Object
Returns the value of attribute failed.
-
#updated ⇒ Object
Returns the value of attribute updated.
Instance Method Summary collapse
Instance Attribute Details
#created ⇒ Object
Returns the value of attribute created
23 24 25 |
# File 'lib/open_loam/import.rb', line 23 def created @created end |
#errors ⇒ Object
Returns the value of attribute errors
23 24 25 |
# File 'lib/open_loam/import.rb', line 23 def errors @errors end |
#failed ⇒ Object
Returns the value of attribute failed
23 24 25 |
# File 'lib/open_loam/import.rb', line 23 def failed @failed end |
#updated ⇒ Object
Returns the value of attribute updated
23 24 25 |
# File 'lib/open_loam/import.rb', line 23 def updated @updated end |
Instance Method Details
#to_h ⇒ Object
25 |
# File 'lib/open_loam/import.rb', line 25 def to_h = { created: created, updated: updated, failed: failed, errors: errors } |
#total ⇒ Object
24 |
# File 'lib/open_loam/import.rb', line 24 def total = created + updated + failed |