Class: Spree::Variants::OptionsPresenter
- Inherits:
-
Object
- Object
- Spree::Variants::OptionsPresenter
- Defined in:
- app/presenters/spree/variants/options_presenter.rb
Constant Summary collapse
- WORDS_CONNECTOR =
', '.freeze
Instance Attribute Summary collapse
-
#variant ⇒ Object
readonly
Returns the value of attribute variant.
Instance Method Summary collapse
-
#initialize(variant) ⇒ OptionsPresenter
constructor
A new instance of OptionsPresenter.
- #to_sentence ⇒ Object
Constructor Details
#initialize(variant) ⇒ OptionsPresenter
Returns a new instance of OptionsPresenter.
10 11 12 |
# File 'app/presenters/spree/variants/options_presenter.rb', line 10 def initialize(variant) @variant = variant end |
Instance Attribute Details
#variant ⇒ Object (readonly)
Returns the value of attribute variant.
6 7 8 |
# File 'app/presenters/spree/variants/options_presenter.rb', line 6 def variant @variant end |
Instance Method Details
#to_sentence ⇒ Object
14 15 16 17 18 19 20 |
# File 'app/presenters/spree/variants/options_presenter.rb', line 14 def to_sentence = option_values = () = () () end |