class DeliveryStateJp::Yamato
Public Class Methods
action_url()
click to toggle source
# File lib/delivery_state_jp/yamato.rb, line 3 def self.action_url 'http://toi.kuronekoyamato.co.jp/cgi-bin/tneko' end
charset()
click to toggle source
# File lib/delivery_state_jp/yamato.rb, line 15 def self.charset 'shift-jis' end
error_messages()
click to toggle source
# File lib/delivery_state_jp/yamato.rb, line 19 def self.error_messages %w(伝票番号誤り) end
post_params(number)
click to toggle source
# File lib/delivery_state_jp/yamato.rb, line 7 def self.post_params(number) {'number01' => number, 'number00' => '1'} end
xpath(index)
click to toggle source
# File lib/delivery_state_jp/yamato.rb, line 11 def self.xpath(index) "/html/body/center[1]/form/table/tr[#{index+2}]/td[5]/font/text()" end