How to remove API logic from view in Rails Way?

I would like to remove this logic:

Suitcase::Hotel.find(id: hotel.id).images.first.url

from view.

I dont have model Hotel. I get this url via API using Suitcase gem.

I forgot pase code: https://gist.github.com/2719479

Problem is because hotel is from @hotels = Suitcase::Hotel.find(location: "%#{headed}%") and API recevie me images only if do Suitcase::Hotel.find(id: hotel.id)

How to remove API logic from view in Rails Way? - Stack Overflow