Sha256: b95076e3ec36d9ffab6f5861392f4f8494b679ac3fe2a1a96f1b9c559637d401

Contents?: true

Size: 416 Bytes

Versions: 3

Compression:

Stored size: 416 Bytes

Contents

# frozen_string_literal: true
module PhoneSites
  module GsmArena
    class ModelListResponse < ::PhoneSites::BaseResponse
      def perform(manufacturer, url, method = 'get', options = {})
        response = super(url, method, options)
        Nokogiri::HTML(response.body).css('.makers li a').map do |elem|
          PhoneSites::GsmArena::PhoneModel.new(elem, manufacturer)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
phone_sites-0.0.5 lib/phone_sites/gsm_arena/model_list_response.rb
phone_sites-0.0.5a lib/phone_sites/gsm_arena/model_list_response.rb
phone_sites-0.0.4 lib/phone_sites/gsm_arena/model_list_response.rb