Class: Dor::RestResourceFactory
- Inherits:
-
Object
- Object
- Dor::RestResourceFactory
show all
- Includes:
- Singleton
- Defined in:
- lib/dor/rest_resource_factory.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.create(type) ⇒ RestClient::Resource
8
9
10
|
# File 'lib/dor/rest_resource_factory.rb', line 8
def self.create(type)
instance.create(type)
end
|
Instance Method Details
#create(type) ⇒ RestClient::Resource
14
15
16
|
# File 'lib/dor/rest_resource_factory.rb', line 14
def create(type)
RestClient::Resource.new(url_for(type), connection_options)
end
|