Class: Spree::DataFeeds::BasePresenter
- Inherits:
-
Object
- Object
- Spree::DataFeeds::BasePresenter
- Defined in:
- app/presenters/spree/data_feeds/base_presenter.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#data_feed ⇒ Object
readonly
Returns the value of attribute data_feed.
-
#store ⇒ Object
readonly
Returns the value of attribute store.
Instance Method Summary collapse
-
#call ⇒ String
The feed content (XML, CSV, etc.).
-
#initialize(data_feed) ⇒ BasePresenter
constructor
A new instance of BasePresenter.
Constructor Details
#initialize(data_feed) ⇒ BasePresenter
Returns a new instance of BasePresenter.
4 5 6 7 |
# File 'app/presenters/spree/data_feeds/base_presenter.rb', line 4 def initialize(data_feed) @data_feed = data_feed @store = data_feed.store end |
Instance Attribute Details
#data_feed ⇒ Object (readonly)
Returns the value of attribute data_feed.
9 10 11 |
# File 'app/presenters/spree/data_feeds/base_presenter.rb', line 9 def data_feed @data_feed end |
#store ⇒ Object (readonly)
Returns the value of attribute store.
9 10 11 |
# File 'app/presenters/spree/data_feeds/base_presenter.rb', line 9 def store @store end |
Instance Method Details
#call ⇒ String
Returns the feed content (XML, CSV, etc.).
12 13 14 |
# File 'app/presenters/spree/data_feeds/base_presenter.rb', line 12 def call raise NotImplementedError end |