Closed janklimo closed 4 years ago
Adds to_srcset method on URI.
to_srcset
URI
client = Cloudimage::Client.new(token: 'demoseal', salt: 'test', sign_urls: false) client.path('/sample.li/birds.jpg').seal_params(:w).to_srcset # => "https://demoseal.cloudimg.io/v7/sample.li/birds.jpg?ci_eqs=dz0xMDA&ci_seal=67581423cf5cb3c598 100w, https://demoseal.cloudimg.io/v7/sample.li/birds.jpg?ci_eqs=dz0xNzA&ci_seal=0aa6cb97299ac2898c 170w, https://demoseal.cloudimg.io/v7/sample.li/birds.jpg?ci_eqs=dz0yODA&ci_seal=4a23288edc4c84e7bc 280w, https://demoseal.cloudimg.io/v7/sample.li/birds.jpg?ci_eqs=dz00NzA&ci_seal=8949b101a8dcd55e29 470w, https://demoseal.cloudimg.io/v7/sample.li/birds.jpg?ci_eqs=dz03ODA&ci_seal=40eedfa4e9b213faf4 780w, https://demoseal.cloudimg.io/v7/sample.li/birds.jpg?ci_eqs=dz0xMzAw&ci_seal=3888c8a0e1f3be356d 1300w, https://demoseal.cloudimg.io/v7/sample.li/birds.jpg?ci_eqs=dz0yMTcw&ci_seal=2c9010a992d2bb7533 2170w, https://demoseal.cloudimg.io/v7/sample.li/birds.jpg?ci_eqs=dz0zNjIw&ci_seal=d51fe62a169ed61601 3620w, https://demoseal.cloudimg.io/v7/sample.li/birds.jpg?ci_eqs=dz01NzYw&ci_seal=8d3612f38d6a17ddd6 5760w"
Closes #14
Adds
to_srcset
method onURI
.Closes #14