Class: Cloudrider::Apiv1::SiteNavComponent::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/cloudrider/apiv1/site_nav_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

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



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


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_nameObject



12
13
14
# File 'lib/cloudrider/apiv1/site_nav_component.rb', line 12

def my_company_name
  "Cloudrider"
end

#pages?Boolean

Returns:

  • (Boolean)


40
41
42
# File 'lib/cloudrider/apiv1/site_nav_component.rb', line 40

def pages?
  true
end


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