class Faker::Twitter
def photo_entity
def photo_entity media_url = Faker::LoremFlickr.image(size: '1064x600') media_id = id { id: media_id, id_str: media_id.to_s, indices: [ 103, 126 ], media_url: media_url.sub('https://', 'http://'), media_url_https: media_url, url: Faker::Internet.url(host: 'example.com'), display_url: 'example.com', expanded_url: Faker::Internet.url(host: 'example.com'), type: 'photo', sizes: { medium: { w: 1064, h: 600, resize: 'fit' }, large: { w: 1064, h: 600, resize: 'fit' }, small: { w: 680, h: 383, resize: 'fit' }, thumb: { w: 150, h: 150, resize: 'crop' } } } end