Class: GH::LinkFollower

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

Instance Attribute Summary

Attributes inherited from Wrapper

#backend, #frontend, #options

Instance Method Summary collapse

Methods inherited from Wrapper

#[], [], double_dispatch, #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



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

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