Class: BBC::Programmes::Programme

Inherits:
Base
  • Object
show all
Defined in:
lib/bbc/programmes/programme.rb

Direct Known Subclasses

Brand, Episode, Series

Class Method Summary collapse

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