Sha256: cecbec915f1f885d20c7932d874d8cb01d177f2c4a6de0cd2f299cb89df0d3a2

Contents?: true

Size: 564 Bytes

Versions: 2

Compression:

Stored size: 564 Bytes

Contents

module SFanalytics
  module ViewHelpers
    attr_reader :analytics
    def analytics_generate(analytics_id = '')
      @analytics = SFanalytics::SFa::new() unless @analytics
      return @analytics.generate(analytics_id)
    end
    
    def analytics_add_transaction(transaction)
      @analytics = SFanalytics::SFa::new() unless @analytics
      return @analytics.add_transaction(transaction)
    end
    
    def analytics_add_item(item)
      @analytics = SFanalytics::SFa::new() unless @analytics
      return @analytics.add_line_item(item)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sfanalytics-0.2.16 lib/sfanalytics/view_helpers.rb
sfanalytics-0.2.15 lib/sfanalytics/view_helpers.rb