Class: UspsApi::LabelType2
- Inherits:
-
Object
- Object
- UspsApi::LabelType2
- Defined in:
- lib/usps_api/models/label_type2.rb
Overview
Ability to select the indicia image size. If omitted then the default indicia size is 2X1.5LABEL.
Constant Summary collapse
- LABEL_TYPE2 =
[ # TODO: Write general description for ENUM_2X15LABEL ENUM_2X15LABEL = '2X1.5LABEL'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = ENUM_2X15LABEL) ⇒ Object
21 22 23 24 25 |
# File 'lib/usps_api/models/label_type2.rb', line 21 def self.from_value(value, default_value = ENUM_2X15LABEL) return default_value if value.nil? default_value end |
.validate(value) ⇒ Object
15 16 17 18 19 |
# File 'lib/usps_api/models/label_type2.rb', line 15 def self.validate(value) return false if value.nil? LABEL_TYPE2.include?(value) end |