Class: ApplicationLoyalty

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/banken/install/templates/application_loyalty.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user, record) ⇒ ApplicationLoyalty

Returns a new instance of ApplicationLoyalty.



4
5
6
7
# File 'lib/generators/banken/install/templates/application_loyalty.rb', line 4

def initialize(user, record)
  @user = user
  @record = record
end

Instance Attribute Details

#recordObject (readonly)

Returns the value of attribute record.



2
3
4
# File 'lib/generators/banken/install/templates/application_loyalty.rb', line 2

def record
  @record
end

#userObject (readonly)

Returns the value of attribute user.



2
3
4
# File 'lib/generators/banken/install/templates/application_loyalty.rb', line 2

def user
  @user
end

Instance Method Details

#create?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/generators/banken/install/templates/application_loyalty.rb', line 17

def create?
  false
end

#destroy?Boolean

Returns:

  • (Boolean)


33
34
35
# File 'lib/generators/banken/install/templates/application_loyalty.rb', line 33

def destroy?
  false
end

#edit?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/generators/banken/install/templates/application_loyalty.rb', line 29

def edit?
  update?
end

#index?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/generators/banken/install/templates/application_loyalty.rb', line 9

def index?
  false
end

#new?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/generators/banken/install/templates/application_loyalty.rb', line 21

def new?
  create?
end

#show?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/generators/banken/install/templates/application_loyalty.rb', line 13

def show?
  false
end

#update?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/generators/banken/install/templates/application_loyalty.rb', line 25

def update?
  false
end