Class: API::Base::BasicAccessCredentials

Inherits:
AccessCredentials show all
Defined in:
lib/whatcounts/api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#passwordObject

Returns the value of attribute password.



7
8
9
# File 'lib/whatcounts/api.rb', line 7

def password
  @password
end

#usernameObject

Returns the value of attribute username.



7
8
9
# File 'lib/whatcounts/api.rb', line 7

def username
  @username
end