Class: PoliPage::PreviewResult
- Inherits:
-
Data
- Object
- Data
- PoliPage::PreviewResult
- Defined in:
- lib/poli_page/models/preview_result.rb
Overview
Return value of ‘client.render.preview`. The HTML is the rendered output; `total_pages` is the page count the rendering engine reports; `environment` is either `“sandbox”` or `“live”` and reflects the key the request was made with.
Instance Attribute Summary collapse
-
#environment ⇒ Object
readonly
Returns the value of attribute environment.
-
#html ⇒ Object
readonly
Returns the value of attribute html.
-
#total_pages ⇒ Object
readonly
Returns the value of attribute total_pages.
Instance Attribute Details
#environment ⇒ Object (readonly)
Returns the value of attribute environment
8 9 10 |
# File 'lib/poli_page/models/preview_result.rb', line 8 def environment @environment end |
#html ⇒ Object (readonly)
Returns the value of attribute html
8 9 10 |
# File 'lib/poli_page/models/preview_result.rb', line 8 def html @html end |
#total_pages ⇒ Object (readonly)
Returns the value of attribute total_pages
8 9 10 |
# File 'lib/poli_page/models/preview_result.rb', line 8 def total_pages @total_pages end |