Class: ActiveFedora::InitializingConnection
- Inherits:
-
Delegator
- Object
- Delegator
- ActiveFedora::InitializingConnection
- Defined in:
- lib/active_fedora/initializing_connection.rb
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#root_resource_path ⇒ Object
readonly
Returns the value of attribute root_resource_path.
Instance Method Summary collapse
- #__getobj__ ⇒ Object
- #__setobj__(connection) ⇒ Object
- #delete ⇒ Object
- #get ⇒ Object
- #head ⇒ Object
-
#initialize(connection, root_resource_path) ⇒ InitializingConnection
constructor
A new instance of InitializingConnection.
- #patch ⇒ Object
- #post ⇒ Object
- #put ⇒ Object
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
#connection ⇒ Object (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_path ⇒ Object (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 |
#delete ⇒ Object
30 31 32 33 |
# File 'lib/active_fedora/initializing_connection.rb', line 30 def delete(*) init_base_path super end |
#get ⇒ Object
25 26 27 28 |
# File 'lib/active_fedora/initializing_connection.rb', line 25 def get(*) init_base_path super end |
#head ⇒ Object
20 21 22 23 |
# File 'lib/active_fedora/initializing_connection.rb', line 20 def head(*) init_base_path super end |
#patch ⇒ Object
45 46 47 48 |
# File 'lib/active_fedora/initializing_connection.rb', line 45 def patch(*) init_base_path super end |
#post ⇒ Object
35 36 37 38 |
# File 'lib/active_fedora/initializing_connection.rb', line 35 def post(*) init_base_path super end |
#put ⇒ Object
40 41 42 43 |
# File 'lib/active_fedora/initializing_connection.rb', line 40 def put(*) init_base_path super end |