Class: LogBrew::TransportResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/logbrew.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status_code, attempts, batches = 1) ⇒ TransportResponse

Returns a new instance of TransportResponse.



63
64
65
66
67
# File 'lib/logbrew.rb', line 63

def initialize(status_code, attempts, batches = 1)
  @status_code = status_code
  @attempts = attempts
  @batches = batches
end

Instance Attribute Details

#attemptsObject (readonly)

Returns the value of attribute attempts.



61
62
63
# File 'lib/logbrew.rb', line 61

def attempts
  @attempts
end

#batchesObject (readonly)

Returns the value of attribute batches.



61
62
63
# File 'lib/logbrew.rb', line 61

def batches
  @batches
end

#status_codeObject (readonly)

Returns the value of attribute status_code.



61
62
63
# File 'lib/logbrew.rb', line 61

def status_code
  @status_code
end