Class: PoliPage::Thumbnail

Inherits:
Data
  • Object
show all
Defined in:
lib/poli_page/models/thumbnail.rb

Overview

A single page thumbnail returned by ‘client.documents.thumbnails`. `data` is base64-encoded image bytes; decode with `Base64.decode64(data)` (stdlib).

Instance Attribute Summary collapse

Instance Attribute Details

#content_typeObject (readonly)

Returns the value of attribute content_type

Returns:

  • (Object)

    the current value of content_type



7
8
9
# File 'lib/poli_page/models/thumbnail.rb', line 7

def content_type
  @content_type
end

#dataObject (readonly)

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



7
8
9
# File 'lib/poli_page/models/thumbnail.rb', line 7

def data
  @data
end

#heightObject (readonly)

Returns the value of attribute height

Returns:

  • (Object)

    the current value of height



7
8
9
# File 'lib/poli_page/models/thumbnail.rb', line 7

def height
  @height
end

#pageObject (readonly)

Returns the value of attribute page

Returns:

  • (Object)

    the current value of page



7
8
9
# File 'lib/poli_page/models/thumbnail.rb', line 7

def page
  @page
end

#widthObject (readonly)

Returns the value of attribute width

Returns:

  • (Object)

    the current value of width



7
8
9
# File 'lib/poli_page/models/thumbnail.rb', line 7

def width
  @width
end