Class: GH::LinkFollower

Inherits:
Wrapper show all
Defined in:
lib/gh/link_follower.rb

Instance Attribute Summary

Attributes inherited from Wrapper

#backend, #options

Instance Method Summary collapse

Methods inherited from Wrapper

[], #[], #frontend, #frontend=, #generate_response, #initialize, #inspect, #load, #prefixed, #reset, wraps

Constructor Details

This class inherits a constructor from GH::Wrapper

Instance Method Details

#modify_hash(hash) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/gh/link_follower.rb', line 6

def modify_hash(hash)
  hash = super
  setup_lazy_loading(hash) if hash['_links']
  hash
rescue Exception => error
  raise Error.new(error, hash)
end