Class: Nexter::Retina

Inherits:
Object
  • Object
show all
Defined in:
lib/nexter/eyecontact.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#modelObject (readonly)

Returns the value of attribute model.



19
20
21
# File 'lib/nexter/eyecontact.rb', line 19

def model
  @model
end

#nexterObject (readonly)

Returns the value of attribute nexter.



23
24
25
# File 'lib/nexter/eyecontact.rb', line 23

def nexter
  @nexter
end

#paramsObject (readonly)

Returns the value of attribute params.



21
22
23
# File 'lib/nexter/eyecontact.rb', line 21

def params
  @params
end

#relationObject (readonly)

Returns the value of attribute relation.



21
22
23
# File 'lib/nexter/eyecontact.rb', line 21

def relation
  @relation
end

#search_formObject (readonly)

Returns the value of attribute search_form.



19
20
21
# File 'lib/nexter/eyecontact.rb', line 19

def search_form
  @search_form
end

#viewObject (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