Class: Spree::Core::StateMachines

Inherits:
Preferences::Configuration show all
Defined in:
lib/spree/core/state_machines.rb,
app/models/spree/core/state_machines/order.rb,
app/models/spree/core/state_machines/payment.rb,
app/models/spree/core/state_machines/shipment.rb,
app/models/spree/core/state_machines/reimbursement.rb,
app/models/spree/core/state_machines/inventory_unit.rb,
app/models/spree/core/state_machines/order/class_methods.rb,
app/models/spree/core/state_machines/return_authorization.rb,
app/models/spree/core/state_machines/return_item/reception_status.rb,
app/models/spree/core/state_machines/return_item/acceptance_status.rb

Defined Under Namespace

Modules: InventoryUnit, Order, Payment, Reimbursement, ReturnAuthorization, ReturnItem, Shipment

Instance Attribute Summary collapse

Attributes inherited from Preferences::Configuration

#load_defaults_called, #loaded_defaults, #preference_store

Method Summary

Methods inherited from Preferences::Configuration

#check_load_defaults_called, class_name_attribute, #configure, inherited, #initialize, #load_defaults, preference, #reset, #set, #use_legacy_db_preferences!, #use_static_preferences!, versioned_preference

Methods included from Preferences::Preferable

#admin_form_preference_names, #default_preferences, #defined_preferences, #get_preference, #has_preference!, #has_preference?, #preference_default, #preference_type, #set_preference

Constructor Details

This class inherits a constructor from Spree::Preferences::Configuration

Instance Attribute Details

#inventory_unitModule

State Machine module for Inventory Units

Returns:

  • (Module)

    a module that implements the state machine for the ‘Spree::InventoryUnit` model.



40
# File 'lib/spree/core/state_machines.rb', line 40

class_name_attribute :inventory_unit, default: "Spree::Core::StateMachines::InventoryUnit"

#orderModule

State Machine module for Orders

Returns:

  • (Module)

    a module that implements the state machine for the ‘Spree::Order` model.



52
# File 'lib/spree/core/state_machines.rb', line 52

class_name_attribute :order, default: "Spree::Core::StateMachines::Order"

#paymentModule

State Machine module for Payments

Returns:

  • (Module)

    a module that implements the state machine for the ‘Spree::Payment` model.



34
# File 'lib/spree/core/state_machines.rb', line 34

class_name_attribute :payment, default: "Spree::Core::StateMachines::Payment"

#reimbursementModule

State Machine module for Reimbursements

Returns:

  • (Module)

    a module that implements the state machine for the ‘Spree::Reimbursement` model.



10
# File 'lib/spree/core/state_machines.rb', line 10

class_name_attribute :reimbursement, default: "Spree::Core::StateMachines::Reimbursement"

#return_authorizationModule

State Machine module for Return Authorizations

Returns:

  • (Module)

    a module that implements the state machine for the ‘Spree::ReturnAuthorization` model.



16
# File 'lib/spree/core/state_machines.rb', line 16

class_name_attribute :return_authorization, default: "Spree::Core::StateMachines::ReturnAuthorization"

#return_item_acceptanceModule

State Machine module for Return Item Acceptances

Returns:

  • (Module)

    a module that implements the acceptance part of the state machine for the ‘Spree::ReturnItem` model.



22
# File 'lib/spree/core/state_machines.rb', line 22

class_name_attribute :return_item_acceptance, default: "Spree::Core::StateMachines::ReturnItem::AcceptanceStatus"

#return_item_receptionModule

State Machine module for Return Item Receptions

Returns:

  • (Module)

    a module that implements the reception part of the state machine for the ‘Spree::ReturnItem` model.



28
# File 'lib/spree/core/state_machines.rb', line 28

class_name_attribute :return_item_reception, default: "Spree::Core::StateMachines::ReturnItem::ReceptionStatus"

#shipmentModule

State Machine module for Shipments

Returns:

  • (Module)

    a module that implements the state machine for the ‘Spree::Shipment` model.



46
# File 'lib/spree/core/state_machines.rb', line 46

class_name_attribute :shipment, default: "Spree::Core::StateMachines::Shipment"