Class: Puppeteer::Page::PDFOptions::Margin
- Inherits:
-
Object
- Object
- Puppeteer::Page::PDFOptions::Margin
- Defined in:
- lib/puppeteer/page/pdf_options.rb
Instance Attribute Summary collapse
-
#bottom ⇒ Object
readonly
Returns the value of attribute bottom.
-
#left ⇒ Object
readonly
Returns the value of attribute left.
-
#right ⇒ Object
readonly
Returns the value of attribute right.
-
#top ⇒ Object
readonly
Returns the value of attribute top.
Instance Method Summary collapse
-
#initialize(options) ⇒ Margin
constructor
A new instance of Margin.
- #translate(&block) ⇒ Object
Constructor Details
#initialize(options) ⇒ Margin
Returns a new instance of Margin.
107 108 109 110 111 112 |
# File 'lib/puppeteer/page/pdf_options.rb', line 107 def initialize() @top = [:top] @bottom = [:bottom] @left = [:left] @right = [:right] end |
Instance Attribute Details
#bottom ⇒ Object (readonly)
Returns the value of attribute bottom.
123 124 125 |
# File 'lib/puppeteer/page/pdf_options.rb', line 123 def bottom @bottom end |
#left ⇒ Object (readonly)
Returns the value of attribute left.
123 124 125 |
# File 'lib/puppeteer/page/pdf_options.rb', line 123 def left @left end |
#right ⇒ Object (readonly)
Returns the value of attribute right.
123 124 125 |
# File 'lib/puppeteer/page/pdf_options.rb', line 123 def right @right end |
#top ⇒ Object (readonly)
Returns the value of attribute top.
123 124 125 |
# File 'lib/puppeteer/page/pdf_options.rb', line 123 def top @top end |