Class: OpenPull::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/openpull/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(access_token, organisation, username) ⇒ Client

Returns a new instance of Client.



7
8
9
10
11
12
# File 'lib/openpull/client.rb', line 7

def initialize(access_token, organisation, username)
  @organisation = organisation
  @username     = username

  setup_octokit(access_token)
end

Instance Attribute Details

#octokit_clientObject (readonly)

Returns the value of attribute octokit_client.



5
6
7
# File 'lib/openpull/client.rb', line 5

def octokit_client
  @octokit_client
end

#organisationObject (readonly)

Returns the value of attribute organisation.



5
6
7
# File 'lib/openpull/client.rb', line 5

def organisation
  @organisation
end

#usernameObject (readonly)

Returns the value of attribute username.



5
6
7
# File 'lib/openpull/client.rb', line 5

def username
  @username
end

Instance Method Details

#show_tableObject



14
15
16
# File 'lib/openpull/client.rb', line 14

def show_table
  OpenPull::Table.show(sub_tables)
end