Class: PoliPage::Thumbnail
- Inherits:
-
Data
- Object
- Data
- PoliPage::Thumbnail
- 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
-
#content_type ⇒ Object
readonly
Returns the value of attribute content_type.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#page ⇒ Object
readonly
Returns the value of attribute page.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Attribute Details
#content_type ⇒ Object (readonly)
Returns the value of attribute content_type
7 8 9 |
# File 'lib/poli_page/models/thumbnail.rb', line 7 def content_type @content_type end |
#data ⇒ Object (readonly)
Returns the value of attribute data
7 8 9 |
# File 'lib/poli_page/models/thumbnail.rb', line 7 def data @data end |
#height ⇒ Object (readonly)
Returns the value of attribute height
7 8 9 |
# File 'lib/poli_page/models/thumbnail.rb', line 7 def height @height end |
#page ⇒ Object (readonly)
Returns the value of attribute page
7 8 9 |
# File 'lib/poli_page/models/thumbnail.rb', line 7 def page @page end |
#width ⇒ Object (readonly)
Returns the value of attribute width
7 8 9 |
# File 'lib/poli_page/models/thumbnail.rb', line 7 def width @width end |