Class: CompanyListParser
Instance Attribute Summary
Attributes inherited from BaseParser
#json_response
Instance Method Summary
collapse
Methods inherited from BaseParser
#fields, #initialize
Constructor Details
This class inherits a constructor from BaseParser
Instance Method Details
#list ⇒ Object
4
5
6
|
# File 'lib/bob/parsers/company_list_parser.rb', line 4
def list
json_response['values'].map { |attributes| Models::CompanyList.new(attributes) }
end
|
#lists ⇒ Object
8
9
10
|
# File 'lib/bob/parsers/company_list_parser.rb', line 8
def lists
json_response.map { |_key, attributes| Models::CompanyList.new(attributes) }
end
|