Class: SayAction

Inherits:
Action
  • Object
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?

Methods included from OhNoes::Destroy

#destroy, #destroyable?

Class Method Details

.subtypesObject



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_typeObject



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

def action_type
  "Say"
end

#quipObject



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

#sentenceObject



10
11
12
# File 'app/models/actions/say_action.rb', line 10

def sentence
  " contacted you"
end

#verbObject



6
7
8
# File 'app/models/actions/say_action.rb', line 6

def verb
  "said"
end