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.



47
48
49
50
# File 'lib/puppeteer/page/pdf_options.rb', line 47

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

Instance Attribute Details

#heightObject (readonly)

Returns the value of attribute height.



51
52
53
# File 'lib/puppeteer/page/pdf_options.rb', line 51

def height
  @height
end

#widthObject (readonly)

Returns the value of attribute width.



51
52
53
# File 'lib/puppeteer/page/pdf_options.rb', line 51

def width
  @width
end