Created
September 22, 2017 19:54
-
-
Save jcoyne/dd23e588a8f8f55fd8d7024384e6069c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id = StacksIdentifier.new('yx350pf4616%2Fyx350pf4616_00_0001.jp2') | |
transform = Iiif::OptionDecoder.decode(region: 'full', size: '748,') | |
image = StacksImage.new(id: id) | |
projection = image.projection_for(transform) | |
ability = Ability.new(User.new) | |
ability.can?(:read, projection) | |
=> true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment