Method: Howcast::Client#homepage
- Defined in:
- lib/howcast/client/homepage.rb
#homepage ⇒ Object
Provides access to the Howcast homepage API.
Outputs
Homepage object
Exceptions
-
Howcast::ApiNotFound
Examples
Create the Howcast homepage object
Howcast::Client.new.homepage
63 64 65 66 67 |
# File 'lib/howcast/client/homepage.rb', line 63 def homepage homepage = parse_single_xml(establish_connection("homepage/staff_videos.xml"), Homepage) homepage.playlists = parse_playlists(establish_connection("homepage/staff_playlists.xml")) homepage end |