Class: JekyllOgImage::Configuration::Image

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path: nil, width: 150, height: 150, radius: 50, position: { x: 80, y: 100 }, gravity: :ne) ⇒ Image

Returns a new instance of Image.



32
33
34
# File 'lib/jekyll_og_image/configuration.rb', line 32

def initialize(path: nil, width: 150, height: 150, radius: 50, position: { x: 80, y: 100 }, gravity: :ne)
  super
end

Instance Attribute Details

#gravityObject (readonly)

Returns the value of attribute gravity

Returns:

  • (Object)

    the current value of gravity



31
32
33
# File 'lib/jekyll_og_image/configuration.rb', line 31

def gravity
  @gravity
end

#heightObject (readonly)

Returns the value of attribute height

Returns:

  • (Object)

    the current value of height



31
32
33
# File 'lib/jekyll_og_image/configuration.rb', line 31

def height
  @height
end

#pathObject (readonly)

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



31
32
33
# File 'lib/jekyll_og_image/configuration.rb', line 31

def path
  @path
end

#positionObject (readonly)

Returns the value of attribute position

Returns:

  • (Object)

    the current value of position



31
32
33
# File 'lib/jekyll_og_image/configuration.rb', line 31

def position
  @position
end

#radiusObject (readonly)

Returns the value of attribute radius

Returns:

  • (Object)

    the current value of radius



31
32
33
# File 'lib/jekyll_og_image/configuration.rb', line 31

def radius
  @radius
end

#widthObject (readonly)

Returns the value of attribute width

Returns:

  • (Object)

    the current value of width



31
32
33
# File 'lib/jekyll_og_image/configuration.rb', line 31

def width
  @width
end