Class: Admin::Animals::NewPresenter

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

Instance Method Summary collapse

Constructor Details

#initialize(user) ⇒ NewPresenter

Returns a new instance of NewPresenter.


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

def initialize(user)
  @user = user
end

Instance Method Details

#biterObject


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

def biter
  Biter.all
end

#colorObject


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

def color
  AnimalColor.organization(@user)
end

#sexObject


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

def sex
  AnimalSex.all
end

#spayObject


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

def spay
  SpayNeuter.all
end

#speciesObject


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

def species
  Species.organization(@user)
end

#statusObject


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

def status
  Status.organization(@user)
end