Class: Gub::Github

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ Github

Returns a new instance of Github.



7
8
9
# File 'lib/gub/clients/github.rb', line 7

def initialize opts
  @connection = Octokit::Client.new(opts)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(meth, *args, &block) ⇒ Object



15
16
17
# File 'lib/gub/clients/github.rb', line 15

def method_missing meth, *args, &block
  @connection.send(meth, *args, &block)
end

Instance Attribute Details

#connectionObject

Returns the value of attribute connection.



5
6
7
# File 'lib/gub/clients/github.rb', line 5

def connection
  @connection
end

Instance Method Details

#userObject



11
12
13
# File 'lib/gub/clients/github.rb', line 11

def user
  @connection.user
end