Sha256: 47a66c542dcc7b7cfb5f711793f08c1dd959810c2a2c75286147ecf0ddf5cd44

Contents?: true

Size: 299 Bytes

Versions: 4

Compression:

Stored size: 299 Bytes

Contents

module SpreeAnalyticsTrackers
  class BasePresenter
    include Rails.application.routes.url_helpers

    def initialize(resource = {}, options = {})
      @resource = resource
      @options = options
    end

    def to_json
      serialize_resource(@resource, @options).to_json
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree_analytics_trackers-2.1.1 app/presenters/spree_analytics_trackers/base_presenter.rb
spree_analytics_trackers-2.1.0 app/presenters/spree_analytics_trackers/base_presenter.rb
spree_analytics_trackers-2.0.0 app/presenters/spree_analytics_trackers/base_presenter.rb
spree_analytics_trackers-2.0.0.rc1 app/presenters/spree_analytics_trackers/base_presenter.rb