Sha256: 88aaf7b72f59aa87aa336d7754493d884ce957e0e9e04fc31ade6d35cd4c1042

Contents?: true

Size: 1.78 KB

Versions: 1

Compression:

Stored size: 1.78 KB

Contents

require_relative 'request'
require_relative 'gateway/feeds'
require_relative 'gateway/categories'
require_relative 'gateway/entries'
require_relative 'gateway/markers'
require_relative 'gateway/subscriptions'
require_relative 'gateway/tags'
require_relative 'gateway/topics'
require_relative 'gateway/shorten'
require_relative 'gateway/profile'
require_relative 'gateway/preferences'
require_relative 'gateway/streams'
require_relative 'gateway/opml'
require_relative 'gateway/search'
require_relative 'gateway/mixes'
require_relative 'gateway/facebook'
require_relative 'gateway/twitter'
require_relative 'gateway/microsoft'
require_relative 'gateway/evernote'

module Feedlr
  # Feedlr Client
  class Client
    include Request
    include Gateway::Feeds
    include Gateway::Categories
    include Gateway::Entries
    include Gateway::Streams
    include Gateway::Markers
    include Gateway::Subscriptions
    include Gateway::Tags
    include Gateway::Topics
    include Gateway::Shorten
    include Gateway::Profile
    include Gateway::Preferences
    include Gateway::Mixes
    include Gateway::Opml
    include Gateway::Search
    include Gateway::Facebook
    include Gateway::Twitter
    include Gateway::Microsoft
    include Gateway::Evernote

    attr_reader :oauth_access_token, :sandbox, :logger

    # Initializer
    # @param [Hash] options client options
    # @option options [String] :oauth_access_token
    # @option options [Boolean] :sandbox
    # @option options [#debug,#info] :logger
    # @return [Feedlr::Client]
    def initialize(options = {})
      @oauth_access_token = options.fetch(:oauth_access_token) do
        Feedlr.oauth_access_token
      end
      @sandbox = options.fetch(:sandbox) { Feedlr.sandbox }
      @logger = options.fetch(:logger) { Feedlr.logger }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
feedlr-0.1.0 lib/feedlr/client.rb