Skip to content

Instantly share code, notes, and snippets.

@ffaerber
Created October 10, 2014 10:04
Show Gist options
  • Save ffaerber/7626ad1148693b2f909d to your computer and use it in GitHub Desktop.
Save ffaerber/7626ad1148693b2f909d to your computer and use it in GitHub Desktop.
json.lounge do
json.id @lounge.id
json.name @lounge.name
json.client @lounge.client
json.logo @lounge.logo
json.description @lounge.description
json.created_at @lounge.created_at
json.updated_at @lounge.updated_at
json.tags @lounge.tag_list
json.sections @lounge.sections do |section|
json.id section.id
json.position section.position
json.name section.name
json.mode section.mode
json.description section.description
json.videos section.videos do |video|
json.position video.section_videos.first.position
json.id video.id
json.vimeo_id video.vimeo_id
json.name video.name
json.description video.description
json.thumbnail video.thumbnail
json.tags video.tag_list
json.duration video.duration
json.width video.width
json.height video.height
json.user_url video.user_url
json.client video.client
json.expiration video.expiration
end
json.directors section.directors do |director|
json.position director.position
json.name director.name
json.thumbnail director.thumbnail
json.description director.description
json.videos director.videos do |video|
json.id video.id
json.position video.director_videos.first.position
json.vimeo_id video.vimeo_id
json.name video.name
json.description video.description
json.thumbnail video.thumbnail
json.tags video.tag_list
json.duration video.duration
json.width video.width
json.height video.height
json.user_url video.user_url
json.client video.client
json.expiration video.expiration
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment