Method: Faker::Webhookdb.s3_url
- Defined in:
- lib/webhookdb/fixtures/faker.rb
.s3_url(opts = {}) ⇒ Object
7 8 9 10 11 |
# File 'lib/webhookdb/fixtures/faker.rb', line 7 def s3_url(opts={}) opts[:region] ||= ["us-east-2.", ""].sample host = "potato.s3.#{opts[:region]}amazonaws.com" return self.image_url(host:) end |