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
10
11
12
|
# File 'lib/dor/rest_resource_factory.rb', line 10
def self.create(type)
instance.create(type)
end
|
Instance Method Details
#create(type) ⇒ RestClient::Resource
16
17
18
|
# File 'lib/dor/rest_resource_factory.rb', line 16
def create(type)
RestClient::Resource.new(url_for(type), connection_options)
end
|