Class: OctokitWrapper

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ OctokitWrapper

Returns a new instance of OctokitWrapper.



236
237
238
# File 'lib/github.rb', line 236

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



240
241
242
243
244
245
246
# File 'lib/github.rb', line 240

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