Method: TVDB::Authorization#initialize

Defined in:
lib/tvdb_client/authorization.rb

#initialize(options) ⇒ Authorization

Returns a new instance of Authorization.



8
9
10
11
12
13
# File 'lib/tvdb_client/authorization.rb', line 8

def initialize( options )
  @username    = options.fetch( :username )   { nil }
  @password    = options.fetch( :userpass )   { nil }
  @api_key     = options.fetch( :apikey )     { Settings.tvdb.apikey   }
  @connection  = options.fetch( :connection )
end