Class: OpenGraphPlus::Namespace::Plus

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

#selectorObject

Returns the value of attribute selector.



52
53
54
# File 'lib/opengraphplus/namespace.rb', line 52

def selector
  @selector
end

#styleObject

Returns the value of attribute style.



52
53
54
# File 'lib/opengraphplus/namespace.rb', line 52

def style
  @style
end

Instance Method Details

#tagsObject



67
68
69
70
71
72
73
# File 'lib/opengraphplus/namespace.rb', line 67

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

#viewportObject



63
64
65
# File 'lib/opengraphplus/namespace.rb', line 63

def viewport
  @viewport ||= Viewport.new
end