Sha256: 191e8980878ef60e80bfabce443db7a7afc6d3a4d321568eacce147a53be53b7

Contents?: true

Size: 590 Bytes

Versions: 2

Compression:

Stored size: 590 Bytes

Contents

require 'mercury_web_parser/connection'
require 'mercury_web_parser/request'
require 'mercury_web_parser/api/content'
require 'mercury_web_parser/article'

module MercuryWebParser
  class Client
    attr_accessor(*Configuration::VALID_CONFIG_KEYS)

    def initialize(options = {})
      options = MercuryWebParser.options.merge(options)
      Configuration::VALID_OPTIONS_KEYS.each do |key|
        send("#{key}=", options[key])
      end
    end

    include MercuryWebParser::Connection
    include MercuryWebParser::Request
    include MercuryWebParser::API::Content
  end # Client
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mercury_web_parser-0.1.2 lib/mercury_web_parser/client.rb
mercury_web_parser-0.1.0 lib/mercury_web_parser/client.rb