Sha256: 63a6a20d22e3d93bd25eef50abf317e6216acf85c803b69a0aab7858eb3bb51d
Contents?: true
Size: 485 Bytes
Versions: 1
Compression:
Stored size: 485 Bytes
Contents
# frozen_string_literal: true module PhoneSites module GsmArena class SearchResponse < ::PhoneSites::BaseResponse def perform(name, method = 'get', options = {}) url = "http://www.gsmarena.com/results.php3?sQuickSearch=yes&sName="+ URI::encode(name) response = super(url, method, options) Nokogiri::HTML(response.body).css('.makers li a').map do |elem| PhoneSites::GsmArena::PhoneModel.new(elem) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
phone_sites-0.1.0 | lib/phone_sites/gsm_arena/search_response.rb |