class PDFire::ConversionParams
Attributes
allow_error_page[RW]
@return [Boolean]
block_ads[RW]
@return [Boolean]
cdn[RW]
@return [Boolean]
delay[RW]
@return [Integer]
emulate_media[RW]
@return [String]
format[RW]
@return [Float]
header_template[RW]
@return [String]
headers[RW]
@return [Hash]
html[RW]
@return [String]
landscape[RW]
@return [Boolean]
margin[RW]
@return [Integer, String]
margin_bottom[RW]
@return [Integer, String]
margin_left[RW]
@return [Integer, String]
margin_right[RW]
@return [Integer, String]
margin_top[RW]
@return [Integer, String]
optimize[RW]
@return [Boolean]
owner_password[RW]
@return [String]
page_ranges[RW]
@return [String]
paper_height[RW]
@return [Integer, String]
paper_width[RW]
@return [Integer, String]
prefer_css_page_size[RW]
@return [Boolean]
print_background[RW]
@return [Boolean]
scale[RW]
@return [Boolean]
selector[RW]
@return [String]
storage[RW]
@return [Boolean, Hash]
timeout[RW]
@return [Integer]
url[RW]
@return [String]
user_password[RW]
@return [String]
viewport_height[RW]
@return [Integer, String]
viewport_width[RW]
@return [Integer, String]
wait_for_selector[RW]
@return [String]
wait_for_selector_timeout[RW]
@return [Integer]
wait_until[RW]
@return [String]
wait_until_timeout[RW]
@return [Integer]
Public Instance Methods
to_map()
click to toggle source
# File lib/conversion_params.rb, line 74 def to_map map = {} map['html'] = @html if @html != nil map['url'] = @url if @url != nil map['cdn'] = @cdn if @cdn != nil map['storage'] = @storage if @storage != nil map['landscape'] = @landscape if @landscape != nil map['printBackground'] = @print_background if @print_background != nil map['scale'] = @scale if @scale != nil map['format'] = @format if @format != nil map['paperWidth'] = @paper_width if @paper_width != nil map['paperHeight'] = @paper_height if @paper_height != nil map['margin'] = @margin if @margin != nil map['marginTop'] = @margin_top if @margin_top != nil map['marginRight'] = @margin_right if @margin_right != nil map['marginBottom'] = @margin_bottom if @margin_bottom != nil map['marginLeft'] = @margin_left if @margin_left != nil map['pageRanges'] = @page_ranges if @page_ranges != nil map['headerTemplate'] = @header_template if @header_template != nil map['footerTemplate'] = @footer_template if @footer_template != nil map['preferCSSPageSize'] = @prefer_css_page_size if @prefer_css_page_size != nil map['viewportWidth'] = @viewport_width if @viewport_width != nil map['viewportHeight'] = @viewport_height if @viewport_height != nil map['blockAds'] = @block_ads if @block_ads != nil map['selector'] = @selector if @selector != nil map['waitForSelector'] = @wait_for_selector if @wait_for_selector != nil map['waitForSelectorTimeout'] = @wait_for_selector_timeout if @wait_for_selector_timeout != nil map['waitUntil'] = @wait_until if @wait_until != nil map['waitUntilTimeout'] = @wait_until_timeout if @wait_until_timeout != nil map['delay'] = @delay if @delay != nil map['timeout'] = @timeout if @timeout != nil map['headers'] = @headers if @headers != nil map['emulateMedia'] = @emulate_media if @emulate_media != nil map['ownerPassword'] = @owner_password if @owner_password != nil map['userPassword'] = @user_password if @user_password != nil map['allowErrorPage'] = @allow_error_page if @allow_error_page != nil map['optimize'] = @optimize if @optimize != nil return map end