Class: Nexter::Retina
- Inherits:
-
Object
- Object
- Nexter::Retina
- Defined in:
- lib/nexter/eyecontact.rb
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#nexter ⇒ Object
readonly
Returns the value of attribute nexter.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#relation ⇒ Object
readonly
Returns the value of attribute relation.
-
#search_form ⇒ Object
readonly
Returns the value of attribute search_form.
-
#view ⇒ Object
readonly
Returns the value of attribute view.
Instance Method Summary collapse
-
#initialize(model, search_form, view) ⇒ Retina
constructor
A new instance of Retina.
- #path(args) ⇒ Object
Constructor Details
#initialize(model, search_form, view) ⇒ Retina
Returns a new instance of Retina.
27 28 29 30 31 32 33 34 35 36 |
# File 'lib/nexter/eyecontact.rb', line 27 def initialize( model, search_form, view) @model = model @search_form = search_form @view = view set_relation set_params @nexter = Nexter.wrap( relation, model ) end |
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model.
19 20 21 |
# File 'lib/nexter/eyecontact.rb', line 19 def model @model end |
#nexter ⇒ Object (readonly)
Returns the value of attribute nexter.
23 24 25 |
# File 'lib/nexter/eyecontact.rb', line 23 def nexter @nexter end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
21 22 23 |
# File 'lib/nexter/eyecontact.rb', line 21 def params @params end |
#relation ⇒ Object (readonly)
Returns the value of attribute relation.
21 22 23 |
# File 'lib/nexter/eyecontact.rb', line 21 def relation @relation end |
#search_form ⇒ Object (readonly)
Returns the value of attribute search_form.
19 20 21 |
# File 'lib/nexter/eyecontact.rb', line 19 def search_form @search_form end |
#view ⇒ Object (readonly)
Returns the value of attribute view.
19 20 21 |
# File 'lib/nexter/eyecontact.rb', line 19 def view @view end |
Instance Method Details
#path(args) ⇒ Object
38 39 40 |
# File 'lib/nexter/eyecontact.rb', line 38 def path(args) @view.polymorphic_path(args, params) end |