class Moysklad::Client::HtmlParsedError
Public Class Methods
new(body)
click to toggle source
# File lib/moysklad/client/errors.rb, line 77 def initialize body @message = parse_title body end
Private Instance Methods
parse_title(body)
click to toggle source
# File lib/moysklad/client/errors.rb, line 83 def parse_title body Nokogiri::HTML(body).css('body').text rescue => err Moysklad.logger.debug "Moysklad::Client parse error #{err}: #{body}" body.force_encoding('utf-8') end