Module: PoliPage::Orientation
- Defined in:
- lib/poli_page/models/orientation.rb
Overview
Valid ‘orientation:` strings for the rendering endpoints (sdk-specification.md §4.1).
Constant Summary collapse
- ORIENTATIONS =
Set["portrait", "landscape"].freeze
Class Method Summary collapse
Class Method Details
.valid?(value) ⇒ Boolean
11 12 13 |
# File 'lib/poli_page/models/orientation.rb', line 11 def valid?(value) ORIENTATIONS.include?(value) end |