Class: Txgh::GitApi

Inherits:
Object
  • Object
show all
Defined in:
lib/txgh/git_api.rb

Direct Known Subclasses

GithubApi, GitlabApi

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client, repo_name) ⇒ GitApi

Returns a new instance of GitApi.



13
14
15
16
# File 'lib/txgh/git_api.rb', line 13

def initialize(client, repo_name)
  @client = client
  @repo_name = repo_name
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



11
12
13
# File 'lib/txgh/git_api.rb', line 11

def client
  @client
end

#repo_nameObject (readonly)

Returns the value of attribute repo_name.



11
12
13
# File 'lib/txgh/git_api.rb', line 11

def repo_name
  @repo_name
end

Class Method Details

.create_from_client(client, repo_name) ⇒ Object



6
7
8
# File 'lib/txgh/git_api.rb', line 6

def create_from_client(client, repo_name)
  new(client, repo_name)
end