Advertisement
Guest User

Untitled

a guest
Feb 3rd, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. def set_movies
  2. prepare_client_soap
  3. @response = [];
  4. dates=@dates.return[:fecha]
  5. dates.each do |date|
  6. message={:user => ,
  7. :password => ,
  8. :id_fecha =>
  9. }
  10. response=@client.call(:get_peliculas, message: message)
  11. response= response.to_hash
  12. @response.push(response[:get_peliculas_response])
  13. end
  14. @response_array = [];
  15. @response.each do |response|
  16. movies=response[:return][:pelicula]
  17. movies.each do |movie|
  18. @response_array.push(movie)
  19. end
  20. end
  21. @movies=@response_array
  22. end
  23.  
  24. -@movies.each do |movie|
  25. =movie[:pelicula]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement