Class: Gemkeeper::CompactIndexServer::Response
- Inherits:
-
Struct
- Object
- Struct
- Gemkeeper::CompactIndexServer::Response
- Defined in:
- lib/gemkeeper/compact_index_server/response.rb
Overview
Outcome of a compact-index request: a not-modified marker (304) or a body+etag (200), or a non-success status. Callers ask, never inspect.
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#etag ⇒ Object
Returns the value of attribute etag.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
7 8 9 |
# File 'lib/gemkeeper/compact_index_server/response.rb', line 7 def body @body end |
#etag ⇒ Object
Returns the value of attribute etag
7 8 9 |
# File 'lib/gemkeeper/compact_index_server/response.rb', line 7 def etag @etag end |
#status ⇒ Object
Returns the value of attribute status
7 8 9 |
# File 'lib/gemkeeper/compact_index_server/response.rb', line 7 def status @status end |
Instance Method Details
#not_modified? ⇒ Boolean
8 |
# File 'lib/gemkeeper/compact_index_server/response.rb', line 8 def not_modified? = status == 304 |
#success? ⇒ Boolean
9 |
# File 'lib/gemkeeper/compact_index_server/response.rb', line 9 def success? = status == 200 |