Sha256: d385df2d31f84160044f6d4c9a0b26d605390ba28cbbe511ac648ae6f3974070

Contents?: true

Size: 594 Bytes

Versions: 2

Compression:

Stored size: 594 Bytes

Contents

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

module ReadabilityParser
  class Client
    attr_accessor *Configuration::VALID_CONFIG_KEYS

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
readability_parser-0.0.5 lib/readability_parser/client.rb
readability_parser-0.0.4 lib/readability_parser/client.rb