Sha256: 57ab6a05e067d126c7d9c79df4089ee1c97ae44855f5ec83ea38e4673224e1ba

Contents?: true

Size: 481 Bytes

Versions: 9

Compression:

Stored size: 481 Bytes

Contents

module NetSuiteRails
  module ListSync

    def self.included(klass)
      klass.send(:extend, ClassMethods)

      PollTrigger.attach(klass)
    end

    module ClassMethods
      def netsuite_list_id(internal_id = nil)
        if internal_id.nil?
          @netsuite_list_id
        else
          @netsuite_list_id = internal_id
        end
      end

      def netsuite_poll(opts = {})
        NetSuiteRails::ListSync::PollManager.poll(self, opts)
      end
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
netsuite_rails-0.3.6 lib/netsuite_rails/list_sync.rb
netsuite_rails-0.3.5 lib/netsuite_rails/list_sync.rb
netsuite_rails-0.3.4 lib/netsuite_rails/list_sync.rb
netsuite_rails-0.3.3 lib/netsuite_rails/list_sync.rb
netsuite_rails-0.3.2 lib/netsuite_rails/list_sync.rb
netsuite_rails-0.3.1 lib/netsuite_rails/list_sync.rb
netsuite_rails-0.2.2 lib/netsuite_rails/list_sync.rb
netsuite_rails-0.2.1 lib/netsuite_rails/list_sync.rb
netsuite_rails-0.2.0 lib/netsuite_rails/list_sync.rb