Class: Spree::Core::StateMachines
- Inherits:
-
Object
- Object
- Spree::Core::StateMachines
show all
- Defined in:
- lib/spree/core/state_machines.rb,
lib/spree/core/state_machines/order.rb,
lib/spree/core/state_machines/payment.rb,
lib/spree/core/state_machines/shipment.rb,
lib/spree/core/state_machines/reimbursement.rb,
lib/spree/core/state_machines/inventory_unit.rb,
lib/spree/core/state_machines/return_authorization.rb,
lib/spree/core/state_machines/return_item/reception_status.rb,
lib/spree/core/state_machines/return_item/acceptance_status.rb
Defined Under Namespace
Modules: InventoryUnit, Order, Payment, Reimbursement, ReturnAuthorization, ReturnItem, Shipment
Instance Attribute Summary collapse
Instance Attribute Details
#inventory_unit ⇒ Object
51
52
53
54
55
56
57
58
|
# File 'lib/spree/core/state_machines.rb', line 51
def inventory_unit
@inventory_unit ||= begin
require 'spree/core/state_machines/inventory_unit'
'Spree::Core::StateMachines::InventoryUnit'
end
@inventory_unit.constantize
end
|
#order ⇒ Object
69
70
71
72
73
74
75
76
|
# File 'lib/spree/core/state_machines.rb', line 69
def order
@order ||= begin
require 'spree/core/state_machines/order'
'Spree::Core::StateMachines::Order'
end
@order.constantize
end
|
#payment ⇒ Object
42
43
44
45
46
47
48
49
|
# File 'lib/spree/core/state_machines.rb', line 42
def payment
@payment ||= begin
require 'spree/core/state_machines/payment'
'Spree::Core::StateMachines::Payment'
end
@payment.constantize
end
|
#reimbursement ⇒ Object
78
79
80
81
82
83
84
85
|
# File 'lib/spree/core/state_machines.rb', line 78
def reimbursement
@reimbursement ||= begin
require 'spree/core/state_machines/reimbursement'
'Spree::Core::StateMachines::Reimbursement'
end
@reimbursement.constantize
end
|
#return_authorization ⇒ Object
15
16
17
18
19
20
21
22
|
# File 'lib/spree/core/state_machines.rb', line 15
def return_authorization
@return_authorization ||= begin
require 'spree/core/state_machines/return_authorization'
'Spree::Core::StateMachines::ReturnAuthorization'
end
@return_authorization.constantize
end
|
#return_item_acceptance ⇒ Object
33
34
35
36
37
38
39
40
|
# File 'lib/spree/core/state_machines.rb', line 33
def return_item_acceptance
@return_item_acceptance_status ||= begin
require 'spree/core/state_machines/return_item/acceptance_status'
'Spree::Core::StateMachines::ReturnItem::AcceptanceStatus'
end
@return_item_acceptance_status.constantize
end
|
#return_item_reception ⇒ Object
24
25
26
27
28
29
30
31
|
# File 'lib/spree/core/state_machines.rb', line 24
def return_item_reception
@return_item_reception_status ||= begin
require 'spree/core/state_machines/return_item/reception_status'
'Spree::Core::StateMachines::ReturnItem::ReceptionStatus'
end
@return_item_reception_status.constantize
end
|
#shipment ⇒ Object
60
61
62
63
64
65
66
67
|
# File 'lib/spree/core/state_machines.rb', line 60
def shipment
@shipment ||= begin
require 'spree/core/state_machines/shipment'
'Spree::Core::StateMachines::Shipment'
end
@shipment.constantize
end
|