Class: LogBrew::TransportResponse
- Inherits:
-
Object
- Object
- LogBrew::TransportResponse
- Defined in:
- lib/logbrew.rb
Instance Attribute Summary collapse
-
#attempts ⇒ Object
readonly
Returns the value of attribute attempts.
-
#batches ⇒ Object
readonly
Returns the value of attribute batches.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(status_code, attempts, batches = 1) ⇒ TransportResponse
constructor
A new instance of TransportResponse.
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
#attempts ⇒ Object (readonly)
Returns the value of attribute attempts.
61 62 63 |
# File 'lib/logbrew.rb', line 61 def attempts @attempts end |
#batches ⇒ Object (readonly)
Returns the value of attribute batches.
61 62 63 |
# File 'lib/logbrew.rb', line 61 def batches @batches end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
61 62 63 |
# File 'lib/logbrew.rb', line 61 def status_code @status_code end |