Class: OpenGraphPlus::Namespace::Twitter::Image

Inherits:
Base
  • Object
show all
Defined in:
lib/opengraphplus/namespace.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#each, #render_in, #tag, #update

Instance Attribute Details

#altObject

Returns the value of attribute alt.



121
122
123
# File 'lib/opengraphplus/namespace.rb', line 121

def alt
  @alt
end

#urlObject

Returns the value of attribute url.



121
122
123
# File 'lib/opengraphplus/namespace.rb', line 121

def url
  @url
end

Instance Method Details

#tagsObject



123
124
125
126
127
128
# File 'lib/opengraphplus/namespace.rb', line 123

def tags
  [
    tag("twitter:image", url),
    tag("twitter:image:alt", alt)
  ].compact
end