product-definition-center / pdc-ruby-gem

PDC Ruby Gem
MIT License
1 stars 7 forks source link

URL of a resource given its id #5

Closed sthaha closed 8 years ago

sthaha commented 8 years ago

Given the following code

  PDC.configure {  |c|    c.site = 'https://pdc.foo.bar.com' }
  release = PDC::V1::Release.find('fedora-22')

There must be a way to get the url of the resource. E.g

release.url     #must return 'https://pdc.foo.bar.com/rest_api/v1/release/fedora-22'
sthaha commented 8 years ago

Closed by #15