class Restforce::DB::Strategies::Passive

Restforce::DB::Strategies::Passive defines an initialization strategy for a mapping in which newly-discovered records should never be synchronized into the other system. This strategy may be used to prevent multiple insertion points from existing for a single database record.

Public Class Methods

new(**_) click to toggle source

Public: Initialize a Restforce::DB::Strategies::Passive.

# File lib/restforce/db/strategies/passive.rb, line 14
def initialize(**_)
end

Public Instance Methods

build?(_) click to toggle source

Public: Should the passed record be constructed in the other system?

Returns false.

# File lib/restforce/db/strategies/passive.rb, line 20
def build?(_)
  false
end
passive?() click to toggle source

Public: Is this a passive sync strategy?

Returns true.

# File lib/restforce/db/strategies/passive.rb, line 27
def passive?
  true
end