Class: RepoParser::Parser
- Inherits:
-
Object
- Object
- RepoParser::Parser
- Defined in:
- lib/repo_parser.rb
Overview
Parser parses an api response into Repository objects
Class Method Summary collapse
Class Method Details
.call(response) ⇒ Object
53 54 55 56 57 58 59 60 |
# File 'lib/repo_parser.rb', line 53 def self.call(response) response.map do |json| Repository.new(json['name'], json['html_url'], json['owner']['login'], json['fork']) end end |