Sha256: 4dc759f2e6e9ebebfcd5b74a1e09faecb6aaf025650820839a0b52221770429b

Contents?: true

Size: 393 Bytes

Versions: 9

Compression:

Stored size: 393 Bytes

Contents

# frozen_string_literal: true

module ActionTracker
  module Workers
    class Inline
      attr_reader :form

      def initialize(form)
        @form = form
      end

      def perform
        connection.post form.collection_path, body: form.present_attributes
      end

      private

      def connection
        @connection ||= ActionTracker::Connection.new
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
action_tracker_client-0.1.8 lib/action_tracker/workers/inline.rb
action_tracker_client-0.1.7 lib/action_tracker/workers/inline.rb
action_tracker_client-0.1.6 lib/action_tracker/workers/inline.rb
action_tracker_client-0.1.5 lib/action_tracker/workers/inline.rb
action_tracker_client-0.1.4 lib/action_tracker/workers/inline.rb
action_tracker_client-0.1.3 lib/action_tracker/workers/inline.rb
action_tracker_client-0.1.2 lib/action_tracker/workers/inline.rb
action_tracker_client-0.1.1 lib/action_tracker/workers/inline.rb
action_tracker_client-0.1.0 lib/action_tracker/workers/inline.rb