example api call into ruby obj