Class: API::Base::BasicAccessCredentials
- Inherits:
-
AccessCredentials
- Object
- AccessCredentials
- API::Base::BasicAccessCredentials
- Defined in:
- lib/whatcounts/api.rb
Instance Attribute Summary collapse
-
#password ⇒ Object
Returns the value of attribute password.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(credentials) ⇒ BasicAccessCredentials
constructor
A new instance of BasicAccessCredentials.
Constructor Details
#initialize(credentials) ⇒ BasicAccessCredentials
Returns a new instance of BasicAccessCredentials.
9 10 11 12 |
# File 'lib/whatcounts/api.rb', line 9 def initialize(credentials) self.username = credentials[:username] self.password = credentials[:password] end |
Instance Attribute Details
#password ⇒ Object
Returns the value of attribute password.
7 8 9 |
# File 'lib/whatcounts/api.rb', line 7 def password @password end |
#username ⇒ Object
Returns the value of attribute username.
7 8 9 |
# File 'lib/whatcounts/api.rb', line 7 def username @username end |