Class: Puppeteer::Page::PDFOptions::PaperSize
- Inherits:
- 
      Object
      
        - Object
- Puppeteer::Page::PDFOptions::PaperSize
 
- Defined in:
- lib/puppeteer/page/pdf_options.rb
Instance Attribute Summary collapse
- 
  
    
      #height  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute height. 
- 
  
    
      #width  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute width. 
Instance Method Summary collapse
- 
  
    
      #initialize(width:, height:)  ⇒ PaperSize 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of PaperSize. 
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
#height ⇒ Object (readonly)
Returns the value of attribute height.
| 51 52 53 | # File 'lib/puppeteer/page/pdf_options.rb', line 51 def height @height end | 
#width ⇒ Object (readonly)
Returns the value of attribute width.
| 51 52 53 | # File 'lib/puppeteer/page/pdf_options.rb', line 51 def width @width end |