Class: Printers::RefreshPrinters::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/printers/refresh_printers.rb

Overview

Service object: result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(updated: nil, created: nil, destroyed: nil, errors: nil) ⇒ Result

Returns a new instance of Result.



6
# File 'app/services/printers/refresh_printers.rb', line 6

def initialize(updated: nil, created: nil, destroyed: nil, errors: nil) = super

Instance Attribute Details

#createdObject (readonly)

Returns the value of attribute created

Returns:

  • (Object)

    the current value of created



5
6
7
# File 'app/services/printers/refresh_printers.rb', line 5

def created
  @created
end

#destroyedObject (readonly)

Returns the value of attribute destroyed

Returns:

  • (Object)

    the current value of destroyed



5
6
7
# File 'app/services/printers/refresh_printers.rb', line 5

def destroyed
  @destroyed
end

#errorsObject (readonly)

Returns the value of attribute errors

Returns:

  • (Object)

    the current value of errors



5
6
7
# File 'app/services/printers/refresh_printers.rb', line 5

def errors
  @errors
end

#updatedObject (readonly)

Returns the value of attribute updated

Returns:

  • (Object)

    the current value of updated



5
6
7
# File 'app/services/printers/refresh_printers.rb', line 5

def updated
  @updated
end