Class: Zelda::Aflevering

Inherits:
Base
  • Object
show all
Defined in:
lib/zelda/aflevering.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Zelda::Base

Class Method Details

.find(id) ⇒ Object



4
5
6
7
# File 'lib/zelda/aflevering.rb', line 4

def find(id)
  response = Request.get("afleveringen/#{id}")
  response ? new(response['aflevering']) : nil
end

Instance Method Details

#to_sObject



10
11
12
# File 'lib/zelda/aflevering.rb', line 10

def to_s
  "#{titel} #{start_tijd}-#{eind_tijd} (pepeid #{pepeid})"
end