Class: Senju::Github
- Inherits:
-
Object
- Object
- Senju::Github
- Defined in:
- lib/senju/github.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(access_token) ⇒ Github
constructor
A new instance of Github.
- #method_missing(method, *args, &block) ⇒ Object
Constructor Details
#initialize(access_token) ⇒ Github
Returns a new instance of Github.
5 6 7 |
# File 'lib/senju/github.rb', line 5 def initialize(access_token) @client = Octokit::Client.new(access_token: access_token) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
9 10 11 |
# File 'lib/senju/github.rb', line 9 def method_missing(method, *args, &block) client.send(method, *args, &block) end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
3 4 5 |
# File 'lib/senju/github.rb', line 3 def client @client end |