Class: Nicos::Connector::MylistAtom

Inherits:
TagAtom show all
Defined in:
lib/classes/connector.rb

Instance Attribute Summary

Attributes inherited from Connector

#result, #waitConfig

Instance Method Summary collapse

Methods inherited from Xml

#get

Methods inherited from Connector

#getStatus, #initialize

Methods included from SetWait

#setWait

Methods inherited from Config

setWait, setWaitDefault

Constructor Details

This class inherits a constructor from Nicos::Connector::Connector

Instance Method Details

#reviewRes(resBody) ⇒ Object



222
223
224
225
226
227
228
229
230
231
232
233
# File 'lib/classes/connector.rb', line 222

def reviewRes(resBody)
  resBody = resBody.force_encoding("UTF-8")
  if # アクセス集中時
    /大変ご迷惑をおかけいたしますが、しばらく時間をあけてから再度検索いただくようご協力をお願いいたします。/ =~         
    resBody then
    serverIsBusy
  elsif /\<entry\>/ =~ resBody && /\<\/entry\>/ =~ resBody
    succeeded(resBody)          
  else
    allDisabled
  end      
end