Class: Puppeteer::Page::PDFOptions::PaperSize

Inherits:
Object
  • Object
show all
Defined in:
lib/puppeteer/page/pdf_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(width:, height:) ⇒ PaperSize

Returns a new instance of PaperSize.



37
38
39
40
# File 'lib/puppeteer/page/pdf_options.rb', line 37

def initialize(width:, height:)
  @width = width
  @height = height
end

Instance Attribute Details

#heightObject (readonly)

Returns the value of attribute height.



41
42
43
# File 'lib/puppeteer/page/pdf_options.rb', line 41

def height
  @height
end

#widthObject (readonly)

Returns the value of attribute width.



41
42
43
# File 'lib/puppeteer/page/pdf_options.rb', line 41

def width
  @width
end