Class: Notion::Transport::Response
- Inherits:
-
Data
- Object
- Data
- Notion::Transport::Response
- Defined in:
- lib/notion/transport.rb
Instance Attribute Summary collapse
-
#attempt ⇒ Object
readonly
Returns the value of attribute attempt.
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#elapsed ⇒ Object
readonly
Returns the value of attribute elapsed.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#request_id ⇒ Object
readonly
Returns the value of attribute request_id.
-
#retried ⇒ Object
readonly
Returns the value of attribute retried.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status:, headers:, body:, request_id:, elapsed:, attempt: 1, retried: false) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(status:, headers:, body:, request_id:, elapsed:, attempt: 1, retried: false) ⇒ Response
Returns a new instance of Response.
10 11 12 |
# File 'lib/notion/transport.rb', line 10 def initialize(status:, headers:, body:, request_id:, elapsed:, attempt: 1, retried: false) super end |
Instance Attribute Details
#attempt ⇒ Object (readonly)
Returns the value of attribute attempt
9 10 11 |
# File 'lib/notion/transport.rb', line 9 def attempt @attempt end |
#body ⇒ Object (readonly)
Returns the value of attribute body
9 10 11 |
# File 'lib/notion/transport.rb', line 9 def body @body end |
#elapsed ⇒ Object (readonly)
Returns the value of attribute elapsed
9 10 11 |
# File 'lib/notion/transport.rb', line 9 def elapsed @elapsed end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers
9 10 11 |
# File 'lib/notion/transport.rb', line 9 def headers @headers end |
#request_id ⇒ Object (readonly)
Returns the value of attribute request_id
9 10 11 |
# File 'lib/notion/transport.rb', line 9 def request_id @request_id end |
#retried ⇒ Object (readonly)
Returns the value of attribute retried
9 10 11 |
# File 'lib/notion/transport.rb', line 9 def retried @retried end |
#status ⇒ Object (readonly)
Returns the value of attribute status
9 10 11 |
# File 'lib/notion/transport.rb', line 9 def status @status end |