class Tinybucket::Api::UserApi

User Api client

@see developer.atlassian.com/bitbucket/api/2/reference/resource/users/%7Busername%7D

users Endpoint

@!attribute [rw] username

@return [String]

Attributes

username[RW]

Public Instance Methods

followers(options = {}) click to toggle source

Send 'GET the list of followers' request

@param options [Hash] @return [Tinybucket::Model::Page]

# File lib/tinybucket/api/user_api.rb, line 33
def followers(options = {})
  get_path(
    path_to_followers,
    options,
    get_parser(:collection, Tinybucket::Model::Profile)
  )
end
following(options = {}) click to toggle source

Send 'GET a list of accounts the user is following' request

@param options [Hash] @return [Tinybucket::Model::Page]

# File lib/tinybucket/api/user_api.rb, line 45
def following(options = {})
  get_path(
    path_to_following,
    options,
    get_parser(:collection, Tinybucket::Model::Profile)
  )
end
profile(options = {}) click to toggle source

Send 'GET the user profile' request

@param options [Hash] @return [Tinybucket::Model::Profile]

# File lib/tinybucket/api/user_api.rb, line 21
def profile(options = {})
  get_path(
    path_to_find,
    options,
    get_parser(:object, Tinybucket::Model::Profile)
  )
end
repos(options = {}) click to toggle source

Send 'GET the user's repositories' request

@param options [Hash] @return [Tinybucket::Model::Page]

# File lib/tinybucket/api/user_api.rb, line 57
def repos(options = {})
  get_path(
    path_to_repos,
    options,
    get_parser(:collection, Tinybucket::Model::Repository)
  )
end