Class: JekyllOgImage::Configuration::Image
- Inherits:
-
Data
- Object
- Data
- JekyllOgImage::Configuration::Image
- Defined in:
- lib/jekyll_og_image/configuration.rb
Instance Attribute Summary collapse
-
#gravity ⇒ Object
readonly
Returns the value of attribute gravity.
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#position ⇒ Object
readonly
Returns the value of attribute position.
-
#radius ⇒ Object
readonly
Returns the value of attribute radius.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(path: nil, width: 150, height: 150, radius: 50, position: { x: 80, y: 100 }, gravity: :ne) ⇒ Image
constructor
A new instance of Image.
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
#gravity ⇒ Object (readonly)
Returns the value of attribute gravity
31 32 33 |
# File 'lib/jekyll_og_image/configuration.rb', line 31 def gravity @gravity end |
#height ⇒ Object (readonly)
Returns the value of attribute height
31 32 33 |
# File 'lib/jekyll_og_image/configuration.rb', line 31 def height @height end |
#path ⇒ Object (readonly)
Returns the value of attribute path
31 32 33 |
# File 'lib/jekyll_og_image/configuration.rb', line 31 def path @path end |
#position ⇒ Object (readonly)
Returns the value of attribute position
31 32 33 |
# File 'lib/jekyll_og_image/configuration.rb', line 31 def position @position end |
#radius ⇒ Object (readonly)
Returns the value of attribute radius
31 32 33 |
# File 'lib/jekyll_og_image/configuration.rb', line 31 def radius @radius end |
#width ⇒ Object (readonly)
Returns the value of attribute width
31 32 33 |
# File 'lib/jekyll_og_image/configuration.rb', line 31 def width @width end |