Class: HearAction
- Inherits:
-
Action
- Object
- ActiveRecord::Base
- Action
- HearAction
show all
- Defined in:
- app/models/actions/hear_action.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Action
create_of_type, #default_starred_to_false, #editable?, for_organization, from_open_struct, #full_details, recent, #set_creator, #set_params, subtypes_by_type, #to_open_struct, #unstarred?
#destroy, #destroyable?
Class Method Details
.subtypes ⇒ Object
18
19
20
|
# File 'app/models/actions/hear_action.rb', line 18
def self.subtypes
["Email", "Phone", "Postal", "Meeting", "Twitter", "Facebook", "Blog", "Press"]
end
|
Instance Method Details
#action_type ⇒ Object
2
3
4
|
# File 'app/models/actions/hear_action.rb', line 2
def action_type
"Hear"
end
|
#quip ⇒ Object
14
15
16
|
# File 'app/models/actions/hear_action.rb', line 14
def quip
"heard from us (via #{subtype.downcase})"
end
|
#sentence ⇒ Object
10
11
12
|
# File 'app/models/actions/hear_action.rb', line 10
def sentence
" heard from you"
end
|
#verb ⇒ Object
6
7
8
|
# File 'app/models/actions/hear_action.rb', line 6
def verb
"heard"
end
|