Class: Txgh::GitApi
- Inherits:
-
Object
- Object
- Txgh::GitApi
- Defined in:
- lib/txgh/git_api.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#repo_name ⇒ Object
readonly
Returns the value of attribute repo_name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(client, repo_name) ⇒ GitApi
constructor
A new instance of GitApi.
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
#client ⇒ Object (readonly)
Returns the value of attribute client.
11 12 13 |
# File 'lib/txgh/git_api.rb', line 11 def client @client end |
#repo_name ⇒ Object (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 |