Class: Cloudrider::Apiv1::SiteNavComponent::Context
- Inherits:
-
Object
- Object
- Cloudrider::Apiv1::SiteNavComponent::Context
- Defined in:
- lib/cloudrider/apiv1/site_nav_component.rb
Instance Attribute Summary collapse
-
#nav_style ⇒ Object
Returns the value of attribute nav_style.
Instance Method Summary collapse
- #about_link ⇒ Object
- #contacts_link ⇒ Object
- #my_company_name ⇒ Object
- #pages? ⇒ Boolean
- #products_link ⇒ Object
Instance Attribute Details
#nav_style ⇒ Object
Returns the value of attribute nav_style.
11 12 13 |
# File 'lib/cloudrider/apiv1/site_nav_component.rb', line 11 def nav_style @nav_style end |
Instance Method Details
#about_link ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/cloudrider/apiv1/site_nav_component.rb', line 16 def about_link if pages? '"about"' else '"index" (query-params anchor="about")' end end |
#contacts_link ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/cloudrider/apiv1/site_nav_component.rb', line 32 def contacts_link if pages? '"contacts"' else '"index" (query-params anchor="contacts")' end end |
#my_company_name ⇒ Object
12 13 14 |
# File 'lib/cloudrider/apiv1/site_nav_component.rb', line 12 def my_company_name "Cloudrider" end |
#pages? ⇒ Boolean
40 41 42 |
# File 'lib/cloudrider/apiv1/site_nav_component.rb', line 40 def pages? true end |
#products_link ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/cloudrider/apiv1/site_nav_component.rb', line 24 def products_link if pages? '"products.index"' else '"index" (query-params anchor="products")' end end |