Class: Smartfm::Auth::Basic

Inherits:
Object
  • Object
show all
Defined in:
lib/smartfm/core/auth.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(username, password) ⇒ Basic

Returns a new instance of Basic.



9
10
11
12
# File 'lib/smartfm/core/auth.rb', line 9

def initialize(username, password)
  @username = username
  @password = password
end

Instance Attribute Details

#passwordObject (readonly)

Returns the value of attribute password.



7
8
9
# File 'lib/smartfm/core/auth.rb', line 7

def password
  @password
end

#usernameObject (readonly)

Returns the value of attribute username.



7
8
9
# File 'lib/smartfm/core/auth.rb', line 7

def username
  @username
end