Class: GetAction

Inherits:
Action
  • Object
show all
Includes:
ImmutableAction
Defined in:
app/models/actions/get_action.rb

Direct Known Subclasses

ChangeAction, CompAction, ExchangeAction, RefundAction

Class Method Summary collapse

Instance Method Summary collapse

Methods included from ImmutableAction

#destroyable?, #editable?

Methods inherited from Action

create_of_type, #default_starred_to_false, #editable?, for_organization, from_open_struct, #full_details, #quip, recent, #sentence, #set_creator, #set_params, subtypes_by_type, #to_open_struct, #unstarred?

Methods included from OhNoes::Destroy

#destroy, #destroyable?

Class Method Details

.subtypesObject



16
17
18
# File 'app/models/actions/get_action.rb', line 16

def self.subtypes
  []
end

Instance Method Details

#action_typeObject



8
9
10
# File 'app/models/actions/get_action.rb', line 8

def action_type
  "Get"
end

#subtypeObject



4
5
6
# File 'app/models/actions/get_action.rb', line 4

def subtype
  "Purchase"
end

#verbObject



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

def verb
  "bought"
end