Class: Imageomatic::Opengraph::Metatag

Inherits:
Struct
  • Object
show all
Includes:
ActionView::Helpers::TagHelper
Defined in:
app/models/imageomatic/opengraph/metatag.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contentObject

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



3
4
5
# File 'app/models/imageomatic/opengraph/metatag.rb', line 3

def content
  @content
end

#propertyObject

Returns the value of attribute property

Returns:

  • (Object)

    the current value of property



3
4
5
# File 'app/models/imageomatic/opengraph/metatag.rb', line 3

def property
  @property
end

Instance Method Details

#to_htmlObject



6
7
8
# File 'app/models/imageomatic/opengraph/metatag.rb', line 6

def to_html
  tag :meta, property: property, content: content
end