Sha256: b3104b9ddbc41efbc314987bb0b6a5e6fda0ea1642cde36a41b496c297ecc0d3

Contents?: true

Size: 371 Bytes

Versions: 6

Compression:

Stored size: 371 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
phone_sites-0.1.2 lib/phone_sites/gsm_arena/manufacturers_list_response.rb
phone_sites-0.1.1 lib/phone_sites/gsm_arena/manufacturers_list_response.rb
phone_sites-0.1.0 lib/phone_sites/gsm_arena/manufacturers_list_response.rb
phone_sites-0.0.5 lib/phone_sites/gsm_arena/manufacturers_list_response.rb
phone_sites-0.0.5a lib/phone_sites/gsm_arena/manufacturers_list_response.rb
phone_sites-0.0.4 lib/phone_sites/gsm_arena/manufacturers_list_response.rb