module RdHighriseApi::Api
Methods used for parsing/connecting to highrise
Public Instance Methods
error_messages_from(body)
click to toggle source
# File lib/rd_highrise_api/api.rb, line 4 def error_messages_from(body) document = Nokogiri::XML(body) document.xpath('//error').map(&:content) end
faraday()
click to toggle source
# File lib/rd_highrise_api/api.rb, line 9 def faraday @faraday ||= Faraday.new(url: @url, ssl: { verify: false }) do |builder| builder.basic_auth(@api_key, 'x') builder.adapter Faraday.default_adapter end end