Class | GH::Wrapper |
In: |
lib/gh/wrapper.rb
|
Parent: | Object |
Public: Simple base class for low level layers. Handy if you want to manipulate resources coming in from Github.
Examples
class IndifferentAccess def [](key) super.tap { |r| r.data.with_indifferent_access! } end end gh = IndifferentAccess.new gh['users/rkh'][:name] # => "Konstantin Haase" # easy to use in the low level stack gh = Github.build do use GH::Cache use IndifferentAccess use GH::Normalizer end