Class: Fe::PageLink
- Inherits:
-
Object
- Object
- Fe::PageLink
- Defined in:
- app/models/fe/page_link.rb
Instance Attribute Summary collapse
-
#dom_id ⇒ Object
Returns the value of attribute dom_id.
-
#load_path ⇒ Object
Returns the value of attribute load_path.
-
#page ⇒ Object
Returns the value of attribute page.
-
#save_path ⇒ Object
to save current page.
Instance Method Summary collapse
-
#initialize(load_path, dom_id, page) ⇒ PageLink
constructor
A new instance of PageLink.
- #label(locale = nil) ⇒ Object
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_id ⇒ Object
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_path ⇒ Object
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 |
#page ⇒ Object
Returns the value of attribute page.
4 5 6 |
# File 'app/models/fe/page_link.rb', line 4 def page @page end |
#save_path ⇒ Object
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 |