Class: HearAction

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

Methods included from OhNoes::Destroy

#destroy, #destroyable?

Class Method Details

.subtypesObject



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_typeObject



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

def action_type
  "Hear"
end

#quipObject



14
15
16
# File 'app/models/actions/hear_action.rb', line 14

def quip
  "heard from us (via #{subtype.downcase})"
end

#sentenceObject



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

def sentence
  " heard from you"
end

#verbObject



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

def verb
  "heard"
end