Class: Printers::RefreshPrinters::Result

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

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.



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

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



2
3
4
# File 'app/services/printers/refresh_printers.rb', line 2

def created
  @created
end

#destroyedObject (readonly)

Returns the value of attribute destroyed

Returns:

  • (Object)

    the current value of destroyed



2
3
4
# File 'app/services/printers/refresh_printers.rb', line 2

def destroyed
  @destroyed
end

#errorsObject (readonly)

Returns the value of attribute errors

Returns:

  • (Object)

    the current value of errors



2
3
4
# File 'app/services/printers/refresh_printers.rb', line 2

def errors
  @errors
end

#updatedObject (readonly)

Returns the value of attribute updated

Returns:

  • (Object)

    the current value of updated



2
3
4
# File 'app/services/printers/refresh_printers.rb', line 2

def updated
  @updated
end