Class: User

Inherits:
Object
  • Object
show all
Defined in:
lib/reclone/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil) ⇒ User

Returns a new instance of User.



4
5
6
7
8
# File 'lib/reclone/user.rb', line 4

def initialize(name=nil)
  @client = Octokitty.new
  @user_info = @client.user_config(name)
  @repos = @client.repo_config(@user_info.) if @user_info
end

Instance Attribute Details

#clientObject

Returns the value of attribute client.



2
3
4
# File 'lib/reclone/user.rb', line 2

def client
  @client
end

#reposObject

Returns the value of attribute repos.



2
3
4
# File 'lib/reclone/user.rb', line 2

def repos
  @repos
end

#user_infoObject

Returns the value of attribute user_info.



2
3
4
# File 'lib/reclone/user.rb', line 2

def 
  @user_info
end

#usernameObject

Returns the value of attribute username.



2
3
4
# File 'lib/reclone/user.rb', line 2

def username
  @username
end