Class: BBC::Programmes::Programme
- Defined in:
- lib/bbc/programmes/programme.rb
Class Method Summary collapse
-
.id_for(identifier) ⇒ Object
FIXME: implement this has_many :genres has_many :formats.
Methods inherited from Base
fetch, #fetch!, #pid, subclasses
Class Method Details
.id_for(identifier) ⇒ Object
FIXME: implement this has_many :genres has_many :formats
22 23 24 25 26 27 28 29 30 |
# File 'lib/bbc/programmes/programme.rb', line 22 def self.id_for(identifier) if identifier.is_a?(::String) super( RDF::URI("#{base_uri}/#{identifier}#programme") ) else super(identifier) end end |