Class: Veye::Github::ListJSON

Inherits:
BaseJSON
  • Object
show all
Defined in:
lib/veye/views/github/list_json.rb

Instance Method Summary collapse

Methods inherited from BaseJSON

#after, #before

Constructor Details

#initializeListJSON

Returns a new instance of ListJSON.



6
7
8
# File 'lib/veye/views/github/list_json.rb', line 6

def initialize
  super()
end

Instance Method Details

#format(results) ⇒ Object



9
10
11
12
# File 'lib/veye/views/github/list_json.rb', line 9

def format(results)
  results = results.shift if results.is_a? Array
  @results[:repos] = results['repos']
end