Class: Senju::Github

Inherits:
Object
  • Object
show all
Defined in:
lib/senju/github.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clientObject (readonly)

Returns the value of attribute client.



3
4
5
# File 'lib/senju/github.rb', line 3

def client
  @client
end