Class: BasicoOctokit::Facade::Client
- Inherits:
-
Object
- Object
- BasicoOctokit::Facade::Client
- Includes:
- Singleton
- Defined in:
- lib/basico-octokit/facade/client.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
Instance Method Summary collapse
- #get(access_token) ⇒ Object
-
#initialize ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize ⇒ Client
Returns a new instance of Client.
7 8 9 |
# File 'lib/basico-octokit/facade/client.rb', line 7 def initialize self.client = Octokit::Client.new end |
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
5 6 7 |
# File 'lib/basico-octokit/facade/client.rb', line 5 def client @client end |
Instance Method Details
#get(access_token) ⇒ Object
11 12 13 14 |
# File 'lib/basico-octokit/facade/client.rb', line 11 def get(access_token) self.client.access_token = access_token self.client end |