Class: ListingIssues::Sync::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/listing_issues/sync.rb

Overview

Per-provider run tally.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(created: 0, updated: 0, resolved: 0, items: 0) ⇒ Result

Returns a new instance of Result.



17
# File 'app/services/listing_issues/sync.rb', line 17

def initialize(created: 0, updated: 0, resolved: 0, items: 0) = super

Instance Attribute Details

#createdObject (readonly)

Returns the value of attribute created

Returns:

  • (Object)

    the current value of created



16
17
18
# File 'app/services/listing_issues/sync.rb', line 16

def created
  @created
end

#itemsObject (readonly)

Returns the value of attribute items

Returns:

  • (Object)

    the current value of items



16
17
18
# File 'app/services/listing_issues/sync.rb', line 16

def items
  @items
end

#resolvedObject (readonly)

Returns the value of attribute resolved

Returns:

  • (Object)

    the current value of resolved



16
17
18
# File 'app/services/listing_issues/sync.rb', line 16

def resolved
  @resolved
end

#updatedObject (readonly)

Returns the value of attribute updated

Returns:

  • (Object)

    the current value of updated



16
17
18
# File 'app/services/listing_issues/sync.rb', line 16

def updated
  @updated
end

Instance Method Details

#to_hObject



18
# File 'app/services/listing_issues/sync.rb', line 18

def to_h = { created:, updated:, resolved:, items: }