class Exlibris::Aleph::Patron::Address

Attributes

patron_id[R]

Public Class Methods

new(patron_id) click to toggle source
# File lib/exlibris/aleph/patron/address.rb, line 7
def initialize(patron_id)
  @patron_id = patron_id
end

Public Instance Methods

email() click to toggle source
# File lib/exlibris/aleph/patron/address.rb, line 37
def email
  @email ||= reader.email
end
sms_number() click to toggle source
# File lib/exlibris/aleph/patron/address.rb, line 29
def sms_number
  @sms_number ||= reader.sms_number
end
want_sms() click to toggle source
# File lib/exlibris/aleph/patron/address.rb, line 33
def want_sms
  @want_sms ||= reader.want_sms
end
zip() click to toggle source
# File lib/exlibris/aleph/patron/address.rb, line 25
def zip
  @zip ||= reader.zip
end

Private Instance Methods

client() click to toggle source
# File lib/exlibris/aleph/patron/address.rb, line 42
def client
  @client ||= API::Client::Patron::Address.new(patron_id)
end
reader() click to toggle source
# File lib/exlibris/aleph/patron/address.rb, line 50
def reader
  @reader ||= API::Reader::Patron::Address.new(root)
end
root() click to toggle source
# File lib/exlibris/aleph/patron/address.rb, line 46
def root
  @root ||= client.root
end