Class: PhoneSites::GsmArena::ModelListResponse

Inherits:
BaseResponse
  • Object
show all
Defined in:
lib/phone_sites/gsm_arena/model_list_response.rb

Instance Method Summary collapse

Instance Method Details

#perform(url, method = 'get', options = {}) ⇒ Object


5
6
7
8
9
10
# File 'lib/phone_sites/gsm_arena/model_list_response.rb', line 5

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