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( ) @username = .fetch( :username ) { nil } @password = .fetch( :userpass ) { nil } @api_key = .fetch( :apikey ) { Settings.tvdb.apikey } @connection = .fetch( :connection ) end |