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