Class: Gzlib::Holding
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Gzlib::Holding
- Defined in:
- lib/gzlib/holding.rb
Instance Attribute Summary collapse
-
#info ⇒ Object
readonly
Returns the value of attribute info.
-
#libcodeMap ⇒ Object
Returns the value of attribute libcodeMap.
-
#loan ⇒ Object
Returns the value of attribute loan.
-
#localMap ⇒ Object
Returns the value of attribute localMap.
Instance Method Summary collapse
- #curlibname ⇒ Object
- #curlocalname ⇒ Object
- #lib_callno ⇒ Object
- #loan? ⇒ Boolean
- #returnDate ⇒ Object
Instance Attribute Details
#info ⇒ Object (readonly)
Returns the value of attribute info.
7 8 9 |
# File 'lib/gzlib/holding.rb', line 7 def info @info end |
#libcodeMap ⇒ Object
Returns the value of attribute libcodeMap.
6 7 8 |
# File 'lib/gzlib/holding.rb', line 6 def libcodeMap @libcodeMap end |
#loan ⇒ Object
Returns the value of attribute loan.
6 7 8 |
# File 'lib/gzlib/holding.rb', line 6 def loan @loan end |
#localMap ⇒ Object
Returns the value of attribute localMap.
6 7 8 |
# File 'lib/gzlib/holding.rb', line 6 def localMap @localMap end |
Instance Method Details
#curlibname ⇒ Object
17 18 19 |
# File 'lib/gzlib/holding.rb', line 17 def curlibname libcodeMap[curlib] end |
#curlocalname ⇒ Object
21 22 23 |
# File 'lib/gzlib/holding.rb', line 21 def curlocalname localMap[curlocal] end |
#lib_callno ⇒ Object
25 26 27 |
# File 'lib/gzlib/holding.rb', line 25 def lib_callno [curlibname, curlocalname, callno].join ' ' end |
#loan? ⇒ Boolean
9 10 11 |
# File 'lib/gzlib/holding.rb', line 9 def loan? !!@loan end |
#returnDate ⇒ Object
13 14 15 |
# File 'lib/gzlib/holding.rb', line 13 def returnDate Time.at loan['returnDate'] / 1000 if loan? end |