Class: GH::LazyLoader

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

Overview

Public: …

Instance Attribute Summary

Attributes inherited from Wrapper

#backend

Instance Method Summary collapse

Methods inherited from Wrapper

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

Constructor Details

This class inherits a constructor from GH::Wrapper

Instance Method Details

#modify_hash(hash) ⇒ Object



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

def modify_hash(hash)
  hash = super
  link = hash['_links'].try(:[], 'self')
  setup_lazy_loading(hash, link['href']) if link
  hash
end