Class: OpenGraphPlus::Tags::Image

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#each, #render_in, #update

Instance Attribute Details

#altObject

Returns the value of attribute alt.



34
35
36
# File 'lib/opengraphplus/tags.rb', line 34

def alt
  @alt
end

#heightObject

Returns the value of attribute height.



34
35
36
# File 'lib/opengraphplus/tags.rb', line 34

def height
  @height
end

#secure_urlObject

Returns the value of attribute secure_url.



34
35
36
# File 'lib/opengraphplus/tags.rb', line 34

def secure_url
  @secure_url
end

#typeObject

Returns the value of attribute type.



34
35
36
# File 'lib/opengraphplus/tags.rb', line 34

def type
  @type
end

#urlObject

Returns the value of attribute url.



34
35
36
# File 'lib/opengraphplus/tags.rb', line 34

def url
  @url
end

#widthObject

Returns the value of attribute width.



34
35
36
# File 'lib/opengraphplus/tags.rb', line 34

def width
  @width
end

Instance Method Details

#tagsObject



36
37
38
39
40
41
42
43
44
45
# File 'lib/opengraphplus/tags.rb', line 36

def tags
  [
    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