Class: OpenGraphPlus::Tags::Image
- Defined in:
- lib/opengraphplus/tags.rb
Instance Attribute Summary collapse
-
#alt ⇒ Object
Returns the value of attribute alt.
-
#height ⇒ Object
Returns the value of attribute height.
-
#secure_url ⇒ Object
Returns the value of attribute secure_url.
-
#type ⇒ Object
Returns the value of attribute type.
-
#url ⇒ Object
Returns the value of attribute url.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
Methods inherited from Base
Instance Attribute Details
#alt ⇒ Object
Returns the value of attribute alt.
34 35 36 |
# File 'lib/opengraphplus/tags.rb', line 34 def alt @alt end |
#height ⇒ Object
Returns the value of attribute height.
34 35 36 |
# File 'lib/opengraphplus/tags.rb', line 34 def height @height end |
#secure_url ⇒ Object
Returns the value of attribute secure_url.
34 35 36 |
# File 'lib/opengraphplus/tags.rb', line 34 def secure_url @secure_url end |
#type ⇒ Object
Returns the value of attribute type.
34 35 36 |
# File 'lib/opengraphplus/tags.rb', line 34 def type @type end |
#url ⇒ Object
Returns the value of attribute url.
34 35 36 |
# File 'lib/opengraphplus/tags.rb', line 34 def url @url end |
#width ⇒ Object
Returns the value of attribute width.
34 35 36 |
# File 'lib/opengraphplus/tags.rb', line 34 def width @width end |
Instance Method Details
#tags ⇒ Object
36 37 38 39 40 41 42 43 44 45 |
# File 'lib/opengraphplus/tags.rb', line 36 def [ Tag.new("og:image", url), Tag.new("og:image:secure_url", secure_url), Tag.new("og:image:type", type), Tag.new("og:image:width", width), Tag.new("og:image:height", height), Tag.new("og:image:alt", alt), ] end |