Class: Gub::Github
- Inherits:
-
Object
- Object
- Gub::Github
- Defined in:
- lib/gub/clients/github.rb
Instance Attribute Summary collapse
-
#connection ⇒ Object
Returns the value of attribute connection.
Instance Method Summary collapse
-
#initialize(opts) ⇒ Github
constructor
A new instance of Github.
- #method_missing(meth, *args, &block) ⇒ Object
- #user ⇒ Object
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
#connection ⇒ Object
Returns the value of attribute connection.
5 6 7 |
# File 'lib/gub/clients/github.rb', line 5 def connection @connection end |
Instance Method Details
#user ⇒ Object
11 12 13 |
# File 'lib/gub/clients/github.rb', line 11 def user @connection.user end |