Class: Collavre::LinkPreviewFetcher::Response

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



34
35
36
# File 'app/services/collavre/link_preview_fetcher.rb', line 34

def body
  @body
end

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



34
35
36
# File 'app/services/collavre/link_preview_fetcher.rb', line 34

def code
  @code
end

#content_typeObject

Returns the value of attribute content_type

Returns:

  • (Object)

    the current value of content_type



34
35
36
# File 'app/services/collavre/link_preview_fetcher.rb', line 34

def content_type
  @content_type
end

#locationObject

Returns the value of attribute location

Returns:

  • (Object)

    the current value of location



34
35
36
# File 'app/services/collavre/link_preview_fetcher.rb', line 34

def location
  @location
end