Class: Akubra::Bean

Inherits:
Object
  • Object
show all
Defined in:
lib/akubra/bean.rb

Instance Method Summary collapse

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

#datastreamStoreObject



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

#objectStoreObject



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