Sha256: 71fcccccd4251588ee577cfe09a01dc2029da76f7d97f88073202b082676e86a

Contents?: true

Size: 318 Bytes

Versions: 5

Compression:

Stored size: 318 Bytes

Contents

module LucidHttp

  module Follower

    def self.for(keyword)
      {
        no_follow: NoFollow.new,
        follow:    Follow.new,
      }.fetch(keyword)
    end

    class NoFollow
      def client
        HTTP
      end
    end

    class Follow
      def client
        HTTP.follow
      end
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lucid_http-1.2.1 lib/lucid_http/followers.rb
lucid_http-1.2.0 lib/lucid_http/followers.rb
lucid_http-1.1.1 lib/lucid_http/followers.rb
lucid_http-1.1.0 lib/lucid_http/followers.rb
lucid_http-1.0.0 lib/lucid_http/followers.rb