Class: OpenGraphPlus::Namespace::Viewport

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

#widthObject

Returns the value of attribute width.



42
43
44
# File 'lib/opengraphplus/namespace.rb', line 42

def width
  @width
end

Instance Method Details

#tagsObject



44
45
46
47
48
# File 'lib/opengraphplus/namespace.rb', line 44

def tags
  [
    tag("og:plus:viewport:width", width)
  ].compact
end