Class: PoliPage::PreviewResult

Inherits:
Data
  • Object
show all
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

Instance Attribute Details

#environmentObject (readonly)

Returns the value of attribute environment

Returns:

  • (Object)

    the current value of environment



8
9
10
# File 'lib/poli_page/models/preview_result.rb', line 8

def environment
  @environment
end

#htmlObject (readonly)

Returns the value of attribute html

Returns:

  • (Object)

    the current value of html



8
9
10
# File 'lib/poli_page/models/preview_result.rb', line 8

def html
  @html
end

#total_pagesObject (readonly)

Returns the value of attribute total_pages

Returns:

  • (Object)

    the current value of total_pages



8
9
10
# File 'lib/poli_page/models/preview_result.rb', line 8

def total_pages
  @total_pages
end