Class: ActiveFedora::InitializingConnection

Inherits:
Delegator
  • Object
show all
Defined in:
lib/active_fedora/initializing_connection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connection, root_resource_path) ⇒ InitializingConnection

Returns a new instance of InitializingConnection.



5
6
7
8
9
10
# File 'lib/active_fedora/initializing_connection.rb', line 5

def initialize(connection, root_resource_path)
  super(connection)
  @connection = connection
  @root_resource_path = root_resource_path
  @initialized = false
end

Instance Attribute Details

#connectionObject (readonly)

Returns the value of attribute connection.



3
4
5
# File 'lib/active_fedora/initializing_connection.rb', line 3

def connection
  @connection
end

#root_resource_pathObject (readonly)

Returns the value of attribute root_resource_path.



3
4
5
# File 'lib/active_fedora/initializing_connection.rb', line 3

def root_resource_path
  @root_resource_path
end

Instance Method Details

#__getobj__Object



12
13
14
# File 'lib/active_fedora/initializing_connection.rb', line 12

def __getobj__
  @connection
end

#__setobj__(connection) ⇒ Object



16
17
18
# File 'lib/active_fedora/initializing_connection.rb', line 16

def __setobj__(connection)
  @connection = connection
end

#deleteObject



30
31
32
33
# File 'lib/active_fedora/initializing_connection.rb', line 30

def delete(*)
  init_base_path
  super
end

#getObject



25
26
27
28
# File 'lib/active_fedora/initializing_connection.rb', line 25

def get(*)
  init_base_path
  super
end

#headObject



20
21
22
23
# File 'lib/active_fedora/initializing_connection.rb', line 20

def head(*)
  init_base_path
  super
end

#patchObject



45
46
47
48
# File 'lib/active_fedora/initializing_connection.rb', line 45

def patch(*)
  init_base_path
  super
end

#postObject



35
36
37
38
# File 'lib/active_fedora/initializing_connection.rb', line 35

def post(*)
  init_base_path
  super
end

#putObject



40
41
42
43
# File 'lib/active_fedora/initializing_connection.rb', line 40

def put(*)
  init_base_path
  super
end