Class: GetFluxly::Batch::FlushResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/getfluxly/batch.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#acceptedObject

Returns the value of attribute accepted

Returns:

  • (Object)

    the current value of accepted



6
7
8
# File 'lib/getfluxly/batch.rb', line 6

def accepted
  @accepted
end

#batchesObject

Returns the value of attribute batches

Returns:

  • (Object)

    the current value of batches



6
7
8
# File 'lib/getfluxly/batch.rb', line 6

def batches
  @batches
end

#errorsObject

Returns the value of attribute errors

Returns:

  • (Object)

    the current value of errors



6
7
8
# File 'lib/getfluxly/batch.rb', line 6

def errors
  @errors
end

#rejectedObject

Returns the value of attribute rejected

Returns:

  • (Object)

    the current value of rejected



6
7
8
# File 'lib/getfluxly/batch.rb', line 6

def rejected
  @rejected
end

Instance Method Details

#+(other) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/getfluxly/batch.rb', line 7

def +(other)
  FlushResult.new(
    accepted + other.accepted,
    rejected + other.rejected,
    batches + other.batches,
    errors + other.errors
  )
end