Class: OpenGraphPlus::Namespace::Twitter::Image
- Defined in:
- lib/opengraphplus/namespace.rb
Instance Attribute Summary collapse
-
#alt ⇒ Object
Returns the value of attribute alt.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
Methods inherited from Base
#each, #render_in, #tag, #update
Instance Attribute Details
#alt ⇒ Object
Returns the value of attribute alt.
121 122 123 |
# File 'lib/opengraphplus/namespace.rb', line 121 def alt @alt end |
#url ⇒ Object
Returns the value of attribute url.
121 122 123 |
# File 'lib/opengraphplus/namespace.rb', line 121 def url @url end |
Instance Method Details
#tags ⇒ Object
123 124 125 126 127 128 |
# File 'lib/opengraphplus/namespace.rb', line 123 def [ tag("twitter:image", url), tag("twitter:image:alt", alt) ].compact end |