Class: RailsSpider::Szlawyers

Inherits:
Parser
  • Object
show all
Defined in:
lib/rails_spider/parser/szlawyers.rb

Instance Attribute Summary

Attributes inherited from Parser

#doc

Instance Method Summary collapse

Methods inherited from Parser

#initialize, #save

Constructor Details

This class inherits a constructor from RailsSpider::Parser

Instance Method Details

#identifyObject

资格证号



17
18
19
# File 'lib/rails_spider/parser/szlawyers.rb', line 17

def identify
  doc.at_css('span#lawlist_LawerqualNo').text
end

#nameObject



4
5
6
# File 'lib/rails_spider/parser/szlawyers.rb', line 4

def name
  doc.at_css('span#lawlist_LawerName').text
end

#officeObject



12
13
14
# File 'lib/rails_spider/parser/szlawyers.rb', line 12

def office
  doc.at_css('span#lawlist_Enterprise').text
end

#sexObject



8
9
10
# File 'lib/rails_spider/parser/szlawyers.rb', line 8

def sex
  doc.at_css('span#lawlist_LawerSex').text
end

#timeObject



21
22
23
# File 'lib/rails_spider/parser/szlawyers.rb', line 21

def time
  doc.at_css('span#lawlist_dtLawerqualNo').text
end