Class: Seorel::Helper::Manager
- Inherits:
-
Object
- Object
- Seorel::Helper::Manager
- Defined in:
- lib/seorel/helper/manager.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Instance Method Summary collapse
- #all ⇒ Object
- #generic ⇒ Object
-
#initialize(request, params) ⇒ Manager
constructor
A new instance of Manager.
- #open_graph ⇒ Object
- #render ⇒ Object
- #twitter ⇒ Object
Constructor Details
#initialize(request, params) ⇒ Manager
Returns a new instance of Manager.
13 14 15 16 |
# File 'lib/seorel/helper/manager.rb', line 13 def initialize(request, params) @request = request @params = params end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
11 12 13 |
# File 'lib/seorel/helper/manager.rb', line 11 def params @params end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
11 12 13 |
# File 'lib/seorel/helper/manager.rb', line 11 def request @request end |
Instance Method Details
#all ⇒ Object
30 31 32 |
# File 'lib/seorel/helper/manager.rb', line 30 def all (generic.all + open_graph.all + twitter.all) end |
#generic ⇒ Object
18 19 20 |
# File 'lib/seorel/helper/manager.rb', line 18 def generic @generic ||= ::Seorel::Helper::Generic.new(request, params) end |
#open_graph ⇒ Object
22 23 24 |
# File 'lib/seorel/helper/manager.rb', line 22 def open_graph @open_graph ||= ::Seorel::Helper::OpenGraph.new(request, params) end |
#render ⇒ Object
34 35 36 |
# File 'lib/seorel/helper/manager.rb', line 34 def render all.join.html_safe end |