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.
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
#attempts ⇒ Object (readonly)
Returns the value of attribute attempts.
69 70 71 |
# File 'lib/logbrew.rb', line 69 def attempts @attempts end |
#batches ⇒ Object (readonly)
Returns the value of attribute batches.
69 70 71 |
# File 'lib/logbrew.rb', line 69 def batches @batches end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
69 70 71 |
# File 'lib/logbrew.rb', line 69 def status_code @status_code end |