Class: SayAction
- Inherits:
-
Action
- Object
- ActiveRecord::Base
- Action
- SayAction
show all
- Defined in:
- app/models/actions/say_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
20
21
22
|
# File 'app/models/actions/say_action.rb', line 20
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/say_action.rb', line 2
def action_type
"Say"
end
|
#quip ⇒ Object
14
15
16
17
18
|
# File 'app/models/actions/say_action.rb', line 14
def quip
result = "said"
result += " (via #{subtype.downcase})" if subtype.present?
result
end
|
#sentence ⇒ Object
10
11
12
|
# File 'app/models/actions/say_action.rb', line 10
def sentence
" contacted you"
end
|
#verb ⇒ Object
6
7
8
|
# File 'app/models/actions/say_action.rb', line 6
def verb
"said"
end
|