Class: OpenLoam::Import::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/open_loam/import.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#created ⇒ Object

Returns the value of attribute created

Returns:

  • (Object) —

    the current value of created



23
24
25
# File 'lib/open_loam/import.rb', line 23

def created
  @created
end

#errors ⇒ Object

Returns the value of attribute errors

Returns:

  • (Object) —

    the current value of errors



23
24
25
# File 'lib/open_loam/import.rb', line 23

def errors
  @errors
end

#failed ⇒ Object

Returns the value of attribute failed

Returns:

  • (Object) —

    the current value of failed



23
24
25
# File 'lib/open_loam/import.rb', line 23

def failed
  @failed
end

#updated ⇒ Object

Returns the value of attribute updated

Returns:

  • (Object) —

    the current value of 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