Class: Veye::Github::ListJSON
- Defined in:
- lib/veye/views/github/list_json.rb
Instance Method Summary collapse
- #format(results) ⇒ Object
-
#initialize ⇒ ListJSON
constructor
A new instance of ListJSON.
Methods inherited from BaseJSON
Constructor Details
#initialize ⇒ ListJSON
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 |