Class: Admin::Animals::IndexPresenter

Inherits:
Object
  • Object
show all
Defined in:
app/presenters/admin/animals/index_presenter.rb

Instance Method Summary collapse

Constructor Details

#initialize(user) ⇒ IndexPresenter

Returns a new instance of IndexPresenter.


2
3
4
# File 'app/presenters/admin/animals/index_presenter.rb', line 2

def initialize(user)
  @user = user
end

Instance Method Details

#biterObject


26
27
28
# File 'app/presenters/admin/animals/index_presenter.rb', line 26

def biter
  Biter.all
end

#colorObject


14
15
16
# File 'app/presenters/admin/animals/index_presenter.rb', line 14

def color
  AnimalColor.organization(@user)
end

#sexObject


18
19
20
# File 'app/presenters/admin/animals/index_presenter.rb', line 18

def sex
  AnimalSex.all
end

#shelterObject


30
31
32
# File 'app/presenters/admin/animals/index_presenter.rb', line 30

def shelter
  Shelter.organization(@user)
end

#spayObject


22
23
24
# File 'app/presenters/admin/animals/index_presenter.rb', line 22

def spay
  SpayNeuter.all
end

#speciesObject


10
11
12
# File 'app/presenters/admin/animals/index_presenter.rb', line 10

def species
  Species.organization(@user)
end

#statusObject


6
7
8
# File 'app/presenters/admin/animals/index_presenter.rb', line 6

def status
  Status.organization(@user)
end