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.
117 118 119 120 121 122 |
# File 'lib/puppeteer/page/pdf_options.rb', line 117 def initialize() @top = [:top] @bottom = [:bottom] @left = [:left] @right = [:right] end |
Instance Attribute Details
#bottom ⇒ Object (readonly)
Returns the value of attribute bottom.
133 134 135 |
# File 'lib/puppeteer/page/pdf_options.rb', line 133 def bottom @bottom end |
#left ⇒ Object (readonly)
Returns the value of attribute left.
133 134 135 |
# File 'lib/puppeteer/page/pdf_options.rb', line 133 def left @left end |
#right ⇒ Object (readonly)
Returns the value of attribute right.
133 134 135 |
# File 'lib/puppeteer/page/pdf_options.rb', line 133 def right @right end |
#top ⇒ Object (readonly)
Returns the value of attribute top.
133 134 135 |
# File 'lib/puppeteer/page/pdf_options.rb', line 133 def top @top end |