Class: LinkThumbnailer::Response
- Inherits:
-
Object
- Object
- LinkThumbnailer::Response
- Defined in:
- lib/link_thumbnailer/response.rb
Instance Method Summary collapse
- #body ⇒ Object
- #charset ⇒ Object
-
#initialize(response) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(response) ⇒ Response
Returns a new instance of Response.
5 6 7 |
# File 'lib/link_thumbnailer/response.rb', line 5 def initialize(response) @response = response end |
Instance Method Details
#body ⇒ Object
13 14 15 |
# File 'lib/link_thumbnailer/response.rb', line 13 def body @body ||= extract_body end |
#charset ⇒ Object
9 10 11 |
# File 'lib/link_thumbnailer/response.rb', line 9 def charset @charset ||= extract_charset end |