class Restforce::DB::Strategies::Always

Restforce::DB::Strategies::Always defines an initialization strategy for a mapping in which newly-discovered records should always be synchronized from Salesforce into the database, and vice-versa.

Public Class Methods

new(**_) click to toggle source

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

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

Public Instance Methods

build?(record) click to toggle source

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

record - A Restforce::DB::Instances::Base.

Returns a Boolean.

# File lib/restforce/db/strategies/always.rb, line 21
def build?(record)
  !record.synced?
end
passive?() click to toggle source

Public: Is this a passive sync strategy?

Returns false.

# File lib/restforce/db/strategies/always.rb, line 28
def passive?
  false
end