Class: Fe::PageLink

Inherits:
Object
  • Object
show all
Defined in:
app/models/fe/page_link.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(load_path, dom_id, page) ⇒ PageLink

Returns a new instance of PageLink.



7
8
9
10
11
# File 'app/models/fe/page_link.rb', line 7

def initialize(load_path, dom_id, page)
  @load_path = load_path
  @dom_id = dom_id
  @page = page
end

Instance Attribute Details

#dom_idObject

Returns the value of attribute dom_id.



4
5
6
# File 'app/models/fe/page_link.rb', line 4

def dom_id
  @dom_id
end

#load_pathObject

Returns the value of attribute load_path.



4
5
6
# File 'app/models/fe/page_link.rb', line 4

def load_path
  @load_path
end

#pageObject

Returns the value of attribute page.



4
5
6
# File 'app/models/fe/page_link.rb', line 4

def page
  @page
end

#save_pathObject

to save current page



5
6
7
# File 'app/models/fe/page_link.rb', line 5

def save_path
  @save_path
end

Instance Method Details

#label(locale = nil) ⇒ Object



13
14
15
# File 'app/models/fe/page_link.rb', line 13

def label(locale = nil)
  page.label(locale)
end