Sha256: d70faece88df4f76caeb150c2c93eb674cb9cbf3d536097a90a0a32b6671e7eb

Contents?: true

Size: 664 Bytes

Versions: 6

Compression:

Stored size: 664 Bytes

Contents

require "xing/snapshot/site_page_set"

module Xing
  module Snapshot
    class SiteSnapshot
      class << self
        def create!(url)
          self.new(url).create!
        end
      end

      def initialize(url)
        @url = url
      end
      attr_accessor :url

      def create!
        @sitemap_page_set = SitePageSet.new(url)
        setup
        generate_snapshot
        teardown
      end

      def setup
      end

      def generate_snapshot
        @sitemap_page_set.visit_pages do |url, path, updated_at|
          fetch(url, path)
        end
      end

      def fetch(url, path)
      end

      def teardown
      end
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
xing-backend-1.0.0.pre.beta lib/xing/snapshot/site_snapshot.rb
xing-backend-0.0.25 lib/xing/snapshot/site_snapshot.rb
xing-backend-0.0.23 lib/xing/snapshot/site_snapshot.rb
xing-backend-0.0.22 lib/xing/snapshot/site_snapshot.rb
xing-backend-0.0.21 lib/xing/snapshot/site_snapshot.rb
xing-backend-0.0.20 lib/xing/snapshot/site_snapshot.rb