Class: Name

Inherits:
Object
  • Object
show all
Defined in:
lib/order_information.rb

Class Method Summary collapse

Class Method Details

.from(source) ⇒ Object



76
77
78
79
80
81
82
# File 'lib/order_information.rb', line 76

def self.from(source)
  doc = Nokogiri::HTML(source)
  input = doc.css("input[name=kokyakuNm]").first
  raise "Couldn't get name field from information input page" unless input

  input["value"]
end