Class: OpenGraphPlus::Namespace::Image
- Defined in:
- lib/opengraphplus/namespace.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
#each, #render_in, #tag, #update
Instance Attribute Details
#alt ⇒ Object
Returns the value of attribute alt.
27 28 29 |
# File 'lib/opengraphplus/namespace.rb', line 27 def alt @alt end |
#height ⇒ Object
Returns the value of attribute height.
27 28 29 |
# File 'lib/opengraphplus/namespace.rb', line 27 def height @height end |
#secure_url ⇒ Object
Returns the value of attribute secure_url.
27 28 29 |
# File 'lib/opengraphplus/namespace.rb', line 27 def secure_url @secure_url end |
#type ⇒ Object
Returns the value of attribute type.
27 28 29 |
# File 'lib/opengraphplus/namespace.rb', line 27 def type @type end |
#url ⇒ Object
Returns the value of attribute url.
27 28 29 |
# File 'lib/opengraphplus/namespace.rb', line 27 def url @url end |
#width ⇒ Object
Returns the value of attribute width.
27 28 29 |
# File 'lib/opengraphplus/namespace.rb', line 27 def width @width end |
Instance Method Details
#tags ⇒ Object
29 30 31 32 33 34 35 36 37 38 |
# File 'lib/opengraphplus/namespace.rb', line 29 def [ tag("og:image", url), tag("og:image:secure_url", secure_url), tag("og:image:type", type), tag("og:image:width", width), tag("og:image:height", height), tag("og:image:alt", alt) ].compact end |