40 lines
1.6 KiB
Ruby
40 lines
1.6 KiB
Ruby
object @profile
|
|
|
|
attributes :id, :first_name, :last_name, :name, :city, :state, :country, :location, :online, :photo_url, :musician, :gender, :birth_date, :internet_service_provider, :friend_count, :liker_count, :like_count, :follower_count, :following_count, :recording_count, :session_count, :biography, :favorite_count, :audio_latency, :upcoming_session_count, :age, :website, :skill_level, :concert_count, :studio_session_count, :virtual_band, :virtual_band_commitment, :traditional_band, :traditional_band_commitment, :traditional_band_touring, :paid_sessions, :paid_sessions_hourly_rate,
|
|
:paid_sessions_daily_rate, :free_sessions, :cowriting, :cowriting_purpose, :subscribe_email
|
|
|
|
child :online_presences => :online_presences do
|
|
attributes :id, :service_type, :username
|
|
end
|
|
|
|
child :performance_samples => :performance_samples do
|
|
attributes :id, :url, :service_type, :claimed_recording_id, :service_id, :description
|
|
|
|
child :claimed_recording => :claimed_recording do
|
|
attributes :id, :name
|
|
end
|
|
end
|
|
|
|
child :genre_players => :genres do
|
|
attributes :genre_id, :player_type, :genre_type
|
|
end
|
|
|
|
child :band_musicians => :bands do
|
|
attributes :id, :name, :admin, :photo_url, :logo_url
|
|
|
|
child :genres => :genres do
|
|
attributes :id, :description
|
|
#partial('api_genres/index', :object => @user.bands.genres)
|
|
end
|
|
end
|
|
|
|
child :musician_instruments => :instruments do
|
|
attributes :description, :proficiency_level, :priority, :instrument_id
|
|
end
|
|
|
|
if @show_teacher_profile && @profile && @profile.teacher
|
|
node :teacher do
|
|
partial("api_teachers/detail", :object => @profile.teacher)
|
|
end
|
|
end
|