Class: PageGlimpse::Image

Inherits:
Object
  • Object
show all
Defined in:
lib/page_glimpse/image.rb

Overview

An instance of this class is returned with a successful PageGlimpse.get request. This object wraps the information returned by Page Glimpse about the thumbnail requested.

Instance Attribute Summary collapse

Instance Attribute Details

#contentObject Also known as: body

Returns the value of attribute content.



9
10
11
# File 'lib/page_glimpse/image.rb', line 9

def content
  @content
end

#content_lengthObject

Returns the value of attribute content_length.



9
10
11
# File 'lib/page_glimpse/image.rb', line 9

def content_length
  @content_length
end

#content_typeObject

Returns the value of attribute content_type.



9
10
11
# File 'lib/page_glimpse/image.rb', line 9

def content_type
  @content_type
end

#filenameObject

Returns the value of attribute filename.



9
10
11
# File 'lib/page_glimpse/image.rb', line 9

def filename
  @filename
end