Method: Feedlr::Client#initialize

Defined in:
lib/feedlr/client.rb

#initialize(options = {}) ⇒ Feedlr::Client

Initializer

Parameters:

  • options (Hash) (defaults to: {})

    client options

Options Hash (options):

  • :oauth_access_token (String)
  • :sandbox (Boolean)
  • :logger (#debug, #info)


52
53
54
55
56
57
58
# File 'lib/feedlr/client.rb', line 52

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