Class: Report::ItemMovedToScrap::ItemMovedToScrapReport::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/report/item_moved_to_scrap/item_moved_to_scrap_report.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(success: nil, data: []) ⇒ Result

Returns a new instance of Result.



4
# File 'app/services/report/item_moved_to_scrap/item_moved_to_scrap_report.rb', line 4

def initialize(success: nil, data: []) = super

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



3
4
5
# File 'app/services/report/item_moved_to_scrap/item_moved_to_scrap_report.rb', line 3

def data
  @data
end

#successObject (readonly)

Returns the value of attribute success

Returns:

  • (Object)

    the current value of success



3
4
5
# File 'app/services/report/item_moved_to_scrap/item_moved_to_scrap_report.rb', line 3

def success
  @success
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


5
# File 'app/services/report/item_moved_to_scrap/item_moved_to_scrap_report.rb', line 5

def success? = success