Class: Akubra::Bean
- Inherits:
-
Object
- Object
- Akubra::Bean
- Defined in:
- lib/akubra/bean.rb
Instance Method Summary collapse
- #datastreamStore ⇒ Object
-
#initialize(file) ⇒ Bean
constructor
A new instance of Bean.
- #objectStore ⇒ Object
Constructor Details
#initialize(file) ⇒ Bean
Returns a new instance of Bean.
5 6 7 |
# File 'lib/akubra/bean.rb', line 5 def initialize file @file = file end |
Instance Method Details
#datastreamStore ⇒ Object
15 16 17 18 19 |
# File 'lib/akubra/bean.rb', line 15 def datastreamStore ref = xml.xpath('//bean[@class="org.fcrepo.server.storage.lowlevel.akubra.AkubraLowlevelStorage"]/constructor-arg[2]/ref/@bean').to_s store = bean(ref) end |
#objectStore ⇒ Object
9 10 11 12 13 |
# File 'lib/akubra/bean.rb', line 9 def objectStore ref = xml.xpath('//bean[@class="org.fcrepo.server.storage.lowlevel.akubra.AkubraLowlevelStorage"]/constructor-arg[1]/ref/@bean').to_s store = bean(ref) end |