Class: Exlibris::Aleph::Patron::Address

Inherits:
Object
  • Object
show all
Defined in:
lib/exlibris/aleph/patron/address.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(patron_id) ⇒ Address

Returns a new instance of Address.



7
8
9
# File 'lib/exlibris/aleph/patron/address.rb', line 7

def initialize(patron_id)
  @patron_id = patron_id
end

Instance Attribute Details

#patron_idObject (readonly)

Returns the value of attribute patron_id.



5
6
7
# File 'lib/exlibris/aleph/patron/address.rb', line 5

def patron_id
  @patron_id
end

Instance Method Details

#emailObject



37
38
39
# File 'lib/exlibris/aleph/patron/address.rb', line 37

def email
  @email ||= reader.email
end

#sms_numberObject



29
30
31
# File 'lib/exlibris/aleph/patron/address.rb', line 29

def sms_number
  @sms_number ||= reader.sms_number
end

#want_smsObject



33
34
35
# File 'lib/exlibris/aleph/patron/address.rb', line 33

def want_sms
  @want_sms ||= reader.want_sms
end

#zipObject



25
26
27
# File 'lib/exlibris/aleph/patron/address.rb', line 25

def zip
  @zip ||= reader.zip
end