twiddla 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/twiddla/api.rb +3 -2
- data/lib/twiddla/version.rb +1 -1
- metadata +1 -1
data/lib/twiddla/api.rb
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
module Twiddla
|
2
2
|
class API
|
3
3
|
class << self
|
4
|
-
attr_accessor :username
|
4
|
+
attr_accessor :username
|
5
|
+
attr_writer :password
|
5
6
|
|
6
7
|
def create_user(options)
|
7
8
|
api_call('CreateUser', options)
|
@@ -46,7 +47,7 @@ module Twiddla
|
|
46
47
|
end
|
47
48
|
|
48
49
|
def auth_params
|
49
|
-
{ username: username, password: password }
|
50
|
+
{ username: @username, password: @password }
|
50
51
|
end
|
51
52
|
|
52
53
|
LEADING_NEGATIVE_INTEGER = /-\d/
|
data/lib/twiddla/version.rb
CHANGED