Class: Collavre::LinkPreviewFetcher::Response
- Inherits:
-
Struct
- Object
- Struct
- Collavre::LinkPreviewFetcher::Response
- Defined in:
- app/services/collavre/link_preview_fetcher.rb
Overview
Minimal HTTP result the fetcher reasons about. body is only populated for
successful (2xx) responses; redirects carry a location instead.
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#code ⇒ Object
Returns the value of attribute code.
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#location ⇒ Object
Returns the value of attribute location.
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
34 35 36 |
# File 'app/services/collavre/link_preview_fetcher.rb', line 34 def body @body end |
#code ⇒ Object
Returns the value of attribute code
34 35 36 |
# File 'app/services/collavre/link_preview_fetcher.rb', line 34 def code @code end |
#content_type ⇒ Object
Returns the value of attribute content_type
34 35 36 |
# File 'app/services/collavre/link_preview_fetcher.rb', line 34 def content_type @content_type end |
#location ⇒ Object
Returns the value of attribute location
34 35 36 |
# File 'app/services/collavre/link_preview_fetcher.rb', line 34 def location @location end |