Module: EacRailsUtils::OpenGraphProtocolHelper
- Defined in:
- app/helpers/eac_rails_utils/open_graph_protocol_helper.rb
Defined Under Namespace
Classes: AbstractEntry, Entry, RootEntry
Constant Summary
collapse
- OGP_META_DEFAULT_PREFIX =
'og'
Instance Method Summary
collapse
Instance Method Details
7
8
9
|
# File 'app/helpers/eac_rails_utils/open_graph_protocol_helper.rb', line 7
def ogp_meta_prefix
OGP_META_DEFAULT_PREFIX
end
|
15
16
17
|
# File 'app/helpers/eac_rails_utils/open_graph_protocol_helper.rb', line 15
def ogp_meta_tags
ogp_root.children_tags
end
|
#ogp_prefix ⇒ Object
11
12
13
|
# File 'app/helpers/eac_rails_utils/open_graph_protocol_helper.rb', line 11
def ogp_prefix
"#{ogp_meta_prefix}: http://ogp.me/ns#"
end
|
#ogp_root ⇒ Object
19
20
21
|
# File 'app/helpers/eac_rails_utils/open_graph_protocol_helper.rb', line 19
def ogp_root
@ogp_root ||= RootEntry.new(self)
end
|
#ogp_set(data) ⇒ Object
23
24
25
|
# File 'app/helpers/eac_rails_utils/open_graph_protocol_helper.rb', line 23
def ogp_set(data)
ogp_root.data = data
end
|