Module: TrailerVote::MediaTypes::Partials
- Defined in:
- lib/trailer_vote/media_types/partials/image_links.rb
Constant Summary collapse
- IMAGE_LINKS =
::MediaTypes::Scheme.new do link :self do attribute :type, Types::ProductImageType, optional: true end link :original do attribute :content_digest, String, optional: true attribute :width, Numeric, optional: true attribute :height, Numeric, optional: true end %i[thumbnail xlarge large medium small xsmall].each do |size| link size, optional: true do attribute :content_digest, String, optional: true attribute :width, Numeric, optional: true attribute :height, Numeric, optional: true end end end