Sha256: 4142c2c300ce06d8adc91a9774765fdd5aa5208f3cb76faaf2b58b9c47cfbf6d

Contents?: true

Size: 499 Bytes

Versions: 4

Compression:

Stored size: 499 Bytes

Contents

require "g5_updatable/feed_mapper"
require "g5_updatable/client_updater"
require "g5_updatable/locations_updater"

class G5Updatable::ClientFeedProcessor
  def initialize(urn=nil)
    @urn = urn || G5Updatable.client_identifier
  end

  def work
    if @urn
      G5Updatable::ClientUpdater.new(feed_mapper.client).update
      G5Updatable::LocationsUpdater.new(feed_mapper.locations).update
    end
  end

private

  def feed_mapper
    @feed_mapper ||= G5Updatable::FeedMapper.new(@urn)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
g5_updatable-0.2.1 lib/g5_updatable/client_feed_processor.rb
g5_updatable-0.2.0 lib/g5_updatable/client_feed_processor.rb
g5_updatable-0.1.0 lib/g5_updatable/client_feed_processor.rb
g5_updatable-0.0.1 lib/g5_updatable/client_feed_processor.rb