Sha256: a4b44312a95d195c902a3c1551cb8eeeb09501017328eff1ad4e24dc2813b920

Contents?: true

Size: 428 Bytes

Versions: 5

Compression:

Stored size: 428 Bytes

Contents

# frozen_string_literal: true

module Trifle
  module Docs
    module Operations
      class Meta
        attr_reader :url

        def initialize(**keywords)
          @url = keywords.fetch(:url)
          @config = keywords[:config]
        end

        def config
          @config || Trifle::Docs.default
        end

        def perform
          config.harvester.meta_for(url: url)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
trifle-docs-0.3.1 lib/trifle/docs/operations/meta.rb
trifle-docs-0.3.0 lib/trifle/docs/operations/meta.rb
trifle-docs-0.2.0 lib/trifle/docs/operations/meta.rb
trifle-docs-0.1.1 lib/trifle/docs/operations/meta.rb
trifle-docs-0.1.0 lib/trifle/docs/operations/meta.rb