Class: Tinybucket::Model::Profile
- Inherits:
-
Base
- Object
- Base
- Tinybucket::Model::Profile
show all
- Defined in:
- lib/tinybucket/model/profile.rb
Overview
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods inherited from Base
#attributes, #attributes=, concern_included?, #initialize
Instance Attribute Details
#created_on ⇒ String
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# File 'lib/tinybucket/model/profile.rb', line 28
class Profile < Base
acceptable_attributes \
:username, :kind, :website, :display_name,
:links, :created_on, :location, :type, :uuid
def followers(options = {})
Tinybucket::Resource::User::Followers.new(username, options)
end
def following(options = {})
Tinybucket::Resource::User::Following.new(username, options)
end
def repos(options = {})
Tinybucket::Resource::User::Repos.new(username, options)
end
private
def user_api
create_api('User').tap do |api|
api.username = username
end
end
def load_model
user_api.profile
end
end
|
#display_name ⇒ String
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# File 'lib/tinybucket/model/profile.rb', line 28
class Profile < Base
acceptable_attributes \
:username, :kind, :website, :display_name,
:links, :created_on, :location, :type, :uuid
def followers(options = {})
Tinybucket::Resource::User::Followers.new(username, options)
end
def following(options = {})
Tinybucket::Resource::User::Following.new(username, options)
end
def repos(options = {})
Tinybucket::Resource::User::Repos.new(username, options)
end
private
def user_api
create_api('User').tap do |api|
api.username = username
end
end
def load_model
user_api.profile
end
end
|
#kind ⇒ NillClass
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# File 'lib/tinybucket/model/profile.rb', line 28
class Profile < Base
acceptable_attributes \
:username, :kind, :website, :display_name,
:links, :created_on, :location, :type, :uuid
def followers(options = {})
Tinybucket::Resource::User::Followers.new(username, options)
end
def following(options = {})
Tinybucket::Resource::User::Following.new(username, options)
end
def repos(options = {})
Tinybucket::Resource::User::Repos.new(username, options)
end
private
def user_api
create_api('User').tap do |api|
api.username = username
end
end
def load_model
user_api.profile
end
end
|
#links ⇒ Hash
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# File 'lib/tinybucket/model/profile.rb', line 28
class Profile < Base
acceptable_attributes \
:username, :kind, :website, :display_name,
:links, :created_on, :location, :type, :uuid
def followers(options = {})
Tinybucket::Resource::User::Followers.new(username, options)
end
def following(options = {})
Tinybucket::Resource::User::Following.new(username, options)
end
def repos(options = {})
Tinybucket::Resource::User::Repos.new(username, options)
end
private
def user_api
create_api('User').tap do |api|
api.username = username
end
end
def load_model
user_api.profile
end
end
|
#location ⇒ String
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# File 'lib/tinybucket/model/profile.rb', line 28
class Profile < Base
acceptable_attributes \
:username, :kind, :website, :display_name,
:links, :created_on, :location, :type, :uuid
def followers(options = {})
Tinybucket::Resource::User::Followers.new(username, options)
end
def following(options = {})
Tinybucket::Resource::User::Following.new(username, options)
end
def repos(options = {})
Tinybucket::Resource::User::Repos.new(username, options)
end
private
def user_api
create_api('User').tap do |api|
api.username = username
end
end
def load_model
user_api.profile
end
end
|
#type ⇒ String
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# File 'lib/tinybucket/model/profile.rb', line 28
class Profile < Base
acceptable_attributes \
:username, :kind, :website, :display_name,
:links, :created_on, :location, :type, :uuid
def followers(options = {})
Tinybucket::Resource::User::Followers.new(username, options)
end
def following(options = {})
Tinybucket::Resource::User::Following.new(username, options)
end
def repos(options = {})
Tinybucket::Resource::User::Repos.new(username, options)
end
private
def user_api
create_api('User').tap do |api|
api.username = username
end
end
def load_model
user_api.profile
end
end
|
#username ⇒ String
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# File 'lib/tinybucket/model/profile.rb', line 28
class Profile < Base
acceptable_attributes \
:username, :kind, :website, :display_name,
:links, :created_on, :location, :type, :uuid
def followers(options = {})
Tinybucket::Resource::User::Followers.new(username, options)
end
def following(options = {})
Tinybucket::Resource::User::Following.new(username, options)
end
def repos(options = {})
Tinybucket::Resource::User::Repos.new(username, options)
end
private
def user_api
create_api('User').tap do |api|
api.username = username
end
end
def load_model
user_api.profile
end
end
|
#uuid ⇒ String
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# File 'lib/tinybucket/model/profile.rb', line 28
class Profile < Base
acceptable_attributes \
:username, :kind, :website, :display_name,
:links, :created_on, :location, :type, :uuid
def followers(options = {})
Tinybucket::Resource::User::Followers.new(username, options)
end
def following(options = {})
Tinybucket::Resource::User::Following.new(username, options)
end
def repos(options = {})
Tinybucket::Resource::User::Repos.new(username, options)
end
private
def user_api
create_api('User').tap do |api|
api.username = username
end
end
def load_model
user_api.profile
end
end
|
#website ⇒ String
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# File 'lib/tinybucket/model/profile.rb', line 28
class Profile < Base
acceptable_attributes \
:username, :kind, :website, :display_name,
:links, :created_on, :location, :type, :uuid
def followers(options = {})
Tinybucket::Resource::User::Followers.new(username, options)
end
def following(options = {})
Tinybucket::Resource::User::Following.new(username, options)
end
def repos(options = {})
Tinybucket::Resource::User::Repos.new(username, options)
end
private
def user_api
create_api('User').tap do |api|
api.username = username
end
end
def load_model
user_api.profile
end
end
|
Instance Method Details
Get this user’s followers
Get users which this user is following
Get this user’s repositories