Class: Exlibris::Aleph::API::Reader::Patron::Status

Inherits:
Base
  • Object
show all
Defined in:
lib/exlibris/aleph/api/reader/patron/status.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#root

Instance Method Summary collapse

Constructor Details

#initialize(root) ⇒ Status

Returns a new instance of Status.



11
12
13
14
15
16
17
18
# File 'lib/exlibris/aleph/api/reader/patron/status.rb', line 11

def initialize(root)
  super(root)
  @code = institution['z305_bor_status_code']
  @display = institution['z305_bor_status']
  @type = institution['z305_bor_type']
  @expiration_date = institution['z305_expiry_date']
  @institution_code = institution['code']
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



8
9
10
# File 'lib/exlibris/aleph/api/reader/patron/status.rb', line 8

def code
  @code
end

#displayObject (readonly)

Returns the value of attribute display.



8
9
10
# File 'lib/exlibris/aleph/api/reader/patron/status.rb', line 8

def display
  @display
end

#expiration_dateObject (readonly)

Returns the value of attribute expiration_date.



8
9
10
# File 'lib/exlibris/aleph/api/reader/patron/status.rb', line 8

def expiration_date
  @expiration_date
end

#institution_codeObject (readonly)

Returns the value of attribute institution_code.



8
9
10
# File 'lib/exlibris/aleph/api/reader/patron/status.rb', line 8

def institution_code
  @institution_code
end

#typeObject (readonly)

Returns the value of attribute type.



8
9
10
# File 'lib/exlibris/aleph/api/reader/patron/status.rb', line 8

def type
  @type
end