Class: OpenStreetMap::BasicAuthClient
- Inherits:
-
Object
- Object
- OpenStreetMap::BasicAuthClient
- Defined in:
- lib/open_street_map/basic_auth_client.rb
Instance Attribute Summary collapse
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
- #credentials ⇒ Object
-
#initialize(username, password) ⇒ BasicAuthClient
constructor
A new instance of BasicAuthClient.
Constructor Details
#initialize(username, password) ⇒ BasicAuthClient
Returns a new instance of BasicAuthClient.
6 7 8 9 |
# File 'lib/open_street_map/basic_auth_client.rb', line 6 def initialize(username, password) @username = username @password = password end |
Instance Attribute Details
#password ⇒ Object (readonly)
Returns the value of attribute password.
4 5 6 |
# File 'lib/open_street_map/basic_auth_client.rb', line 4 def password @password end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
4 5 6 |
# File 'lib/open_street_map/basic_auth_client.rb', line 4 def username @username end |
Instance Method Details
#credentials ⇒ Object
11 12 13 |
# File 'lib/open_street_map/basic_auth_client.rb', line 11 def credentials {:username => username, :password => password} end |