Class: PDFGeneratorAPI::WatermarkPosition
- Inherits:
-
Object
- Object
- PDFGeneratorAPI::WatermarkPosition
- Defined in:
- lib/pdf_generator_api_client/models/watermark_position.rb
Constant Summary collapse
- TOP_LEFT =
"top-left".freeze
- TOP_CENTER =
"top-center".freeze
- TOP_RIGHT =
"top-right".freeze
- LEFT =
"left".freeze
- CENTER =
"center".freeze
- RIGHT =
"right".freeze
- BOTTOM_LEFT =
"bottom-left".freeze
- BOTTOM_CENTER =
"bottom-center".freeze
- BOTTOM_RIGHT =
"bottom-right".freeze
Class Method Summary collapse
- .all_vars ⇒ Object
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.all_vars ⇒ Object
28 29 30 |
# File 'lib/pdf_generator_api_client/models/watermark_position.rb', line 28 def self.all_vars @all_vars ||= [TOP_LEFT, TOP_CENTER, TOP_RIGHT, LEFT, CENTER, RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
35 36 37 |
# File 'lib/pdf_generator_api_client/models/watermark_position.rb', line 35 def self.build_from_hash(value) new.build_from_hash(value) end |
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
42 43 44 45 |
# File 'lib/pdf_generator_api_client/models/watermark_position.rb', line 42 def build_from_hash(value) return value if WatermarkPosition.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #WatermarkPosition" end |