Class: Gitabu::Api::V3::Users

Inherits:
Object
  • Object
show all
Defined in:
lib/gitabu/api/v3/users.rb

Overview

Users endpoints.

Class Method Summary collapse

Class Method Details

.add_an_email_address_for_the_authenticated_user(emails: nil, options: nil) ⇒ Object



82
83
84
# File 'lib/gitabu/api/v3/users.rb', line 82

def self.add_an_email_address_for_the_authenticated_user(emails: nil, options: nil)
  new.add_an_email_address_for_the_authenticated_user(emails, options)
end

.block_a_user(username: nil, options: nil) ⇒ Object



66
67
68
# File 'lib/gitabu/api/v3/users.rb', line 66

def self.block_a_user(username: nil, options: nil)
  new.block_a_user(username, options)
end

.check_if_a_person_is_followed_by_the_authenticated_user(username: nil, options: nil) ⇒ Object



102
103
104
# File 'lib/gitabu/api/v3/users.rb', line 102

def self.check_if_a_person_is_followed_by_the_authenticated_user(username: nil, options: nil)
  new.check_if_a_person_is_followed_by_the_authenticated_user(username, options)
end

.check_if_a_user_follows_another_user(username: nil, target_user: nil, options: nil) ⇒ Object



122
123
124
# File 'lib/gitabu/api/v3/users.rb', line 122

def self.check_if_a_user_follows_another_user(username: nil, target_user: nil, options: nil)
  new.check_if_a_user_follows_another_user(username, target_user, options)
end

.check_if_a_user_is_blocked_by_the_authenticated_user(username: nil, options: nil) ⇒ Object



62
63
64
# File 'lib/gitabu/api/v3/users.rb', line 62

def self.check_if_a_user_is_blocked_by_the_authenticated_user(username: nil, options: nil)
  new.check_if_a_user_is_blocked_by_the_authenticated_user(username, options)
end

.create_a_gpg_key_for_the_authenticated_user(armored_public_key: nil, options: nil) ⇒ Object



130
131
132
# File 'lib/gitabu/api/v3/users.rb', line 130

def self.create_a_gpg_key_for_the_authenticated_user(armored_public_key: nil, options: nil)
  new.create_a_gpg_key_for_the_authenticated_user(armored_public_key, options)
end

.create_a_public_ssh_key_for_the_authenticated_user(title: nil, key: nil, options: nil) ⇒ Object



150
151
152
# File 'lib/gitabu/api/v3/users.rb', line 150

def self.create_a_public_ssh_key_for_the_authenticated_user(title: nil, key: nil, options: nil)
  new.create_a_public_ssh_key_for_the_authenticated_user(title, key, options)
end

.delete_a_gpg_key_for_the_authenticated_user(gpg_key_id: nil, options: nil) ⇒ Object



138
139
140
# File 'lib/gitabu/api/v3/users.rb', line 138

def self.delete_a_gpg_key_for_the_authenticated_user(gpg_key_id: nil, options: nil)
  new.delete_a_gpg_key_for_the_authenticated_user(gpg_key_id, options)
end

.delete_a_public_ssh_key_for_the_authenticated_user(key_id: nil, options: nil) ⇒ Object



158
159
160
# File 'lib/gitabu/api/v3/users.rb', line 158

def self.delete_a_public_ssh_key_for_the_authenticated_user(key_id: nil, options: nil)
  new.delete_a_public_ssh_key_for_the_authenticated_user(key_id, options)
end

.delete_an_email_address_for_the_authenticated_user(emails: nil, options: nil) ⇒ Object



86
87
88
# File 'lib/gitabu/api/v3/users.rb', line 86

def self.delete_an_email_address_for_the_authenticated_user(emails: nil, options: nil)
  new.delete_an_email_address_for_the_authenticated_user(emails, options)
end

.follow_a_user(username: nil, options: nil) ⇒ Object



106
107
108
# File 'lib/gitabu/api/v3/users.rb', line 106

def self.follow_a_user(username: nil, options: nil)
  new.follow_a_user(username, options)
end

.get_a_gpg_key_for_the_authenticated_user(gpg_key_id: nil, options: nil) ⇒ Object



134
135
136
# File 'lib/gitabu/api/v3/users.rb', line 134

def self.get_a_gpg_key_for_the_authenticated_user(gpg_key_id: nil, options: nil)
  new.get_a_gpg_key_for_the_authenticated_user(gpg_key_id, options)
end

.get_a_public_ssh_key_for_the_authenticated_user(key_id: nil, options: nil) ⇒ Object



154
155
156
# File 'lib/gitabu/api/v3/users.rb', line 154

def self.get_a_public_ssh_key_for_the_authenticated_user(key_id: nil, options: nil)
  new.get_a_public_ssh_key_for_the_authenticated_user(key_id, options)
end

.get_a_user(username: nil, options: nil) ⇒ Object



50
51
52
# File 'lib/gitabu/api/v3/users.rb', line 50

def self.get_a_user(username: nil, options: nil)
  new.get_a_user(username, options)
end

.get_contextual_information_for_a_user(username: nil, options: nil) ⇒ Object



54
55
56
# File 'lib/gitabu/api/v3/users.rb', line 54

def self.get_contextual_information_for_a_user(username: nil, options: nil)
  new.get_contextual_information_for_a_user(username, options)
end

.get_the_authenticated_user(options: nil) ⇒ Object



38
39
40
# File 'lib/gitabu/api/v3/users.rb', line 38

def self.get_the_authenticated_user(options: nil)
  new.get_the_authenticated_user(options)
end

.list_email_addresses_for_the_authenticated_user(options: nil) ⇒ Object



78
79
80
# File 'lib/gitabu/api/v3/users.rb', line 78

def self.list_email_addresses_for_the_authenticated_user(options: nil)
  new.list_email_addresses_for_the_authenticated_user(options)
end

.list_followers_of_a_user(username: nil, options: nil) ⇒ Object



114
115
116
# File 'lib/gitabu/api/v3/users.rb', line 114

def self.list_followers_of_a_user(username: nil, options: nil)
  new.list_followers_of_a_user(username, options)
end

.list_followers_of_the_authenticated_user(options: nil) ⇒ Object



94
95
96
# File 'lib/gitabu/api/v3/users.rb', line 94

def self.list_followers_of_the_authenticated_user(options: nil)
  new.list_followers_of_the_authenticated_user(options)
end

.list_gpg_keys_for_a_user(username: nil, options: nil) ⇒ Object



142
143
144
# File 'lib/gitabu/api/v3/users.rb', line 142

def self.list_gpg_keys_for_a_user(username: nil, options: nil)
  new.list_gpg_keys_for_a_user(username, options)
end

.list_gpg_keys_for_the_authenticated_user(options: nil) ⇒ Object



126
127
128
# File 'lib/gitabu/api/v3/users.rb', line 126

def self.list_gpg_keys_for_the_authenticated_user(options: nil)
  new.list_gpg_keys_for_the_authenticated_user(options)
end

.list_public_email_addresses_for_the_authenticated_user(options: nil) ⇒ Object



90
91
92
# File 'lib/gitabu/api/v3/users.rb', line 90

def self.list_public_email_addresses_for_the_authenticated_user(options: nil)
  new.list_public_email_addresses_for_the_authenticated_user(options)
end

.list_public_keys_for_a_user(username: nil, options: nil) ⇒ Object



162
163
164
# File 'lib/gitabu/api/v3/users.rb', line 162

def self.list_public_keys_for_a_user(username: nil, options: nil)
  new.list_public_keys_for_a_user(username, options)
end

.list_public_ssh_keys_for_the_authenticated_user(options: nil) ⇒ Object



146
147
148
# File 'lib/gitabu/api/v3/users.rb', line 146

def self.list_public_ssh_keys_for_the_authenticated_user(options: nil)
  new.list_public_ssh_keys_for_the_authenticated_user(options)
end

.list_the_people_a_user_follows(username: nil, options: nil) ⇒ Object



118
119
120
# File 'lib/gitabu/api/v3/users.rb', line 118

def self.list_the_people_a_user_follows(username: nil, options: nil)
  new.list_the_people_a_user_follows(username, options)
end

.list_the_people_the_authenticated_user_follows(options: nil) ⇒ Object



98
99
100
# File 'lib/gitabu/api/v3/users.rb', line 98

def self.list_the_people_the_authenticated_user_follows(options: nil)
  new.list_the_people_the_authenticated_user_follows(options)
end

.list_users(options: nil) ⇒ Object



46
47
48
# File 'lib/gitabu/api/v3/users.rb', line 46

def self.list_users(options: nil)
  new.list_users(options)
end

.list_users_blocked_by_the_authenticated_user(options: nil) ⇒ Object



58
59
60
# File 'lib/gitabu/api/v3/users.rb', line 58

def self.list_users_blocked_by_the_authenticated_user(options: nil)
  new.list_users_blocked_by_the_authenticated_user(options)
end

.set_primary_email_visibility_for_the_authenticated_user(visibility: nil, options: nil) ⇒ Object



74
75
76
# File 'lib/gitabu/api/v3/users.rb', line 74

def self.set_primary_email_visibility_for_the_authenticated_user(visibility: nil, options: nil)
  new.set_primary_email_visibility_for_the_authenticated_user(visibility, options)
end

.unblock_a_user(username: nil, options: nil) ⇒ Object



70
71
72
# File 'lib/gitabu/api/v3/users.rb', line 70

def self.unblock_a_user(username: nil, options: nil)
  new.unblock_a_user(username, options)
end

.unfollow_a_user(username: nil, options: nil) ⇒ Object



110
111
112
# File 'lib/gitabu/api/v3/users.rb', line 110

def self.unfollow_a_user(username: nil, options: nil)
  new.unfollow_a_user(username, options)
end

.update_the_authenticated_user(name: nil, email: nil, blog: nil, twitter_username: nil, company: nil, location: nil, hireable: nil, bio: nil, options: nil) ⇒ Object



42
43
44
# File 'lib/gitabu/api/v3/users.rb', line 42

def self.update_the_authenticated_user(name: nil, email: nil, blog: nil, twitter_username: nil, company: nil, location: nil, hireable: nil, bio: nil, options: nil)
  new.update_the_authenticated_user(name, email, blog, twitter_username, company, location, hireable, bio, options)
end