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.



71
72
73
74
75
# File 'lib/logbrew.rb', line 71

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.



69
70
71
# File 'lib/logbrew.rb', line 69

def attempts
  @attempts
end

#batchesObject (readonly)

Returns the value of attribute batches.



69
70
71
# File 'lib/logbrew.rb', line 69

def batches
  @batches
end

#status_codeObject (readonly)

Returns the value of attribute status_code.



69
70
71
# File 'lib/logbrew.rb', line 69

def status_code
  @status_code
end