Class: Spree::Core::NullPromotionConfiguration

Inherits:
Preferences::Configuration show all
Includes:
EnvironmentExtension
Defined in:
lib/spree/core/null_promotion_configuration.rb

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

#actionsArray

Allows getting and setting actions. Deprecated.

Returns:

  • (Array)

    a set of actions



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

add_class_set :actions

#advertiser_classClass

Allows providing a different promotion advertiser.

Returns:

  • (Class)

    an object that conforms to the API of the standard promotion advertiser class Spree::NullPromotionAdvertiser.

See Also:



77
# File 'lib/spree/core/null_promotion_configuration.rb', line 77

class_name_attribute :advertiser_class, default: 'Spree::NullPromotionAdvertiser'

#calculatorsSpree::Core::NestedClassSet

Allows getting an setting calculators for actions. Deprecated.

Returns:



58
# File 'lib/spree/core/null_promotion_configuration.rb', line 58

add_nested_class_set :calculators

#coupon_code_handler_classClass

Allows providing a different coupon code handler.

Returns:

  • (Class)

    an object that conforms to the API of the standard coupon code handler class Spree::NullPromotionHandler.

See Also:



17
# File 'lib/spree/core/null_promotion_configuration.rb', line 17

class_name_attribute :coupon_code_handler_class, default: 'Spree::NullPromotionHandler'

#promotion_finder_classClass

Allows providing a different promotion finder.

Returns:

  • (Class)

    an object that conforms to the API of the standard promotion finder class Spree::NullPromotionFinder.

See Also:



25
# File 'lib/spree/core/null_promotion_configuration.rb', line 25

class_name_attribute :promotion_finder_class, default: 'Spree::NullPromotionFinder'

#rulesArray

Allows getting and setting rules. Deprecated.

Returns:

  • (Array)

    a set of rules



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

add_class_set :rules

#shipping_actionsArray

Allows getting and setting shipping actions. Deprecated.

Returns:

  • (Array)

    a set of shipping_actions



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

add_class_set :shipping_actions

#shipping_promotion_handler_classClass

Allows providing a different promotion shipping promotion handler.

Returns:

  • (Class)

    an object that conforms to the API of the standard promotion finder class Spree::NullPromotionHandler.

See Also:



67
# File 'lib/spree/core/null_promotion_configuration.rb', line 67

class_name_attribute :shipping_promotion_handler_class, default: 'Spree::NullPromotionHandler'