Class: OpenPull::Client
- Inherits:
-
Object
- Object
- OpenPull::Client
- Defined in:
- lib/openpull/client.rb
Instance Attribute Summary collapse
-
#octokit_client ⇒ Object
readonly
Returns the value of attribute octokit_client.
-
#organisation ⇒ Object
readonly
Returns the value of attribute organisation.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(access_token, organisation, username) ⇒ Client
constructor
A new instance of Client.
- #show_table ⇒ Object
Constructor Details
#initialize(access_token, organisation, username) ⇒ Client
Returns a new instance of Client.
5 6 7 8 9 10 |
# File 'lib/openpull/client.rb', line 5 def initialize(access_token, organisation, username) @organisation = organisation @username = username setup_octokit(access_token) end |
Instance Attribute Details
#octokit_client ⇒ Object (readonly)
Returns the value of attribute octokit_client.
3 4 5 |
# File 'lib/openpull/client.rb', line 3 def octokit_client @octokit_client end |
#organisation ⇒ Object (readonly)
Returns the value of attribute organisation.
3 4 5 |
# File 'lib/openpull/client.rb', line 3 def organisation @organisation end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
3 4 5 |
# File 'lib/openpull/client.rb', line 3 def username @username end |
Instance Method Details
#show_table ⇒ Object
12 13 14 |
# File 'lib/openpull/client.rb', line 12 def show_table OpenPull::Table.show(sub_tables) end |