Class: JekyllOgImage::Configuration::Canvas

Inherits:
Data
  • Object
show all
Defined in:
lib/jekyll_og_image/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_colorObject (readonly)

Returns the value of attribute background_color

Returns:

  • the current value of background_color



6
7
8
# File 'lib/jekyll_og_image/configuration.rb', line 6

def background_color
  @background_color
end

#background_imageObject (readonly)

Returns the value of attribute background_image

Returns:

  • the current value of background_image



6
7
8
# File 'lib/jekyll_og_image/configuration.rb', line 6

def background_image
  @background_image
end

#heightObject (readonly)

Returns the value of attribute height

Returns:

  • the current value of height



6
7
8
# File 'lib/jekyll_og_image/configuration.rb', line 6

def height
  @height
end

#widthObject (readonly)

Returns the value of attribute width

Returns:

  • the current value of width



6
7
8
# File 'lib/jekyll_og_image/configuration.rb', line 6

def width
  @width
end