Class: OctokitWrapper
- Inherits:
-
Object
- Object
- OctokitWrapper
- Defined in:
- lib/github.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ OctokitWrapper
constructor
A new instance of OctokitWrapper.
- #method_missing(meth, *args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ OctokitWrapper
Returns a new instance of OctokitWrapper.
238 239 240 |
# File 'lib/github.rb', line 238 def initialize(*args) @client = Octokit::Client.new(*args) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args) ⇒ Object
242 243 244 245 246 247 248 |
# File 'lib/github.rb', line 242 def method_missing(meth,*args) begin return @client.send(meth,*args) rescue Octokit::Error => e die("=" * 80 + "\nGithub API Error\n" + e.to_s) end end |