Sha256: 8bd7c8def21c9d0eed48b696f4dc5a6752066055f15d84cceaaa0b3846c24ff6

Contents?: true

Size: 388 Bytes

Versions: 3

Compression:

Stored size: 388 Bytes

Contents

# frozen_string_literal: true
module PhoneSites
  module GsmArena
    class ModelListResponse < ::PhoneSites::BaseResponse
      def perform(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)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
phone_sites-0.1.2 lib/phone_sites/gsm_arena/model_list_response.rb
phone_sites-0.1.1 lib/phone_sites/gsm_arena/model_list_response.rb
phone_sites-0.1.0 lib/phone_sites/gsm_arena/model_list_response.rb