Class: JekyllOgImage::Configuration::Canvas
- Inherits:
-
Data
- Object
- Data
- JekyllOgImage::Configuration::Canvas
- Defined in:
- lib/jekyll_og_image/configuration.rb
Instance Attribute Summary collapse
-
#background_color ⇒ Object
readonly
Returns the value of attribute background_color.
-
#background_image ⇒ Object
readonly
Returns the value of attribute background_image.
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(background_color: "#FFFFFF", background_image: nil, width: 1200, height: 600) ⇒ Canvas
constructor
A new instance of Canvas.
Constructor Details
#initialize(background_color: "#FFFFFF", background_image: nil, width: 1200, height: 600) ⇒ Canvas
Returns a new instance of Canvas.
7 8 9 |
# File 'lib/jekyll_og_image/configuration.rb', line 7 def initialize(background_color: "#FFFFFF", background_image: nil, width: 1200, height: 600) super end |
Instance Attribute Details
#background_color ⇒ Object (readonly)
Returns the value of attribute background_color
6 7 8 |
# File 'lib/jekyll_og_image/configuration.rb', line 6 def background_color @background_color end |
#background_image ⇒ Object (readonly)
Returns the value of attribute background_image
6 7 8 |
# File 'lib/jekyll_og_image/configuration.rb', line 6 def background_image @background_image end |
#height ⇒ Object (readonly)
Returns the value of attribute height
6 7 8 |
# File 'lib/jekyll_og_image/configuration.rb', line 6 def height @height end |
#width ⇒ Object (readonly)
Returns the value of attribute width
6 7 8 |
# File 'lib/jekyll_og_image/configuration.rb', line 6 def width @width end |