Class: GiveAction

Inherits:
Action
  • Object
show all
Defined in:
app/models/actions/give_action.rb

Constant Summary

Constants inherited from Action

Action::GIVE_TYPES

Instance Method Summary collapse

Methods inherited from Action

create_of_type, from_open_struct, #full_details, #give_action_subtypes, #hear_action_subtypes, recent, #set_creator, #to_open_struct, #unstarred?, #verb

Methods included from OhNoes::Destroy

#destroy, #destroyable?

Instance Method Details

#action_typeObject



2
3
4
# File 'app/models/actions/give_action.rb', line 2

def action_type
  "Give"
end

#sentenceObject



12
13
14
# File 'app/models/actions/give_action.rb', line 12

def sentence
  "contributed to your organization."
end

#set_params(params, person) ⇒ Object



6
7
8
9
10
# File 'app/models/actions/give_action.rb', line 6

def set_params(params, person)
  params ||= {}
  self.dollar_amount = params[:dollar_amount]
  super(params, person)
end