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.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(status_code, attempts) ⇒ TransportResponse
constructor
A new instance of TransportResponse.
Constructor Details
#initialize(status_code, attempts) ⇒ TransportResponse
Returns a new instance of TransportResponse.
43 44 45 46 |
# File 'lib/logbrew.rb', line 43 def initialize(status_code, attempts) @status_code = status_code @attempts = attempts end |
Instance Attribute Details
#attempts ⇒ Object (readonly)
Returns the value of attribute attempts.
41 42 43 |
# File 'lib/logbrew.rb', line 41 def attempts @attempts end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
41 42 43 |
# File 'lib/logbrew.rb', line 41 def status_code @status_code end |