class Uaeds::EdsDSML

Public Class Methods

eds_endpoint() click to toggle source
# File lib/uaeds/eds_dsml.rb, line 10
def self.eds_endpoint
  @@eds_dsml_endpoint
end
eds_endpoint=(endpoint=nil) click to toggle source
# File lib/uaeds/eds_dsml.rb, line 6
def self.eds_endpoint=(endpoint=nil)
  @@eds_dsml_endpoint = endpoint
end

Private Instance Methods

open_person(identifier) click to toggle source
# File lib/uaeds/eds_dsml.rb, line 16
def open_person(identifier)
  # This might be improved with some more handling here and in DSML init.
  if @user && @password
    DSMLPerson.new(Nokogiri::XML(open(@url + "/people/#{identifier}",
                                      http_basic_authentication: [@user, @password])))
  else
    DSMLPerson.new(Nokogiri::XML(open(@url + "/people/#{identifier}")))
  end
end