Class: UspsApi::MailClass3
- Inherits:
-
Object
- Object
- UspsApi::MailClass3
- Defined in:
- lib/usps_api/models/mail_class3.rb
Overview
The mail class of the price.
Constant Summary collapse
- MAIL_CLASS3 =
[ # TODO: Write general description for FIRSTCLASS_MAIL FIRSTCLASS_MAIL = 'FIRST-CLASS_MAIL'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = FIRSTCLASS_MAIL) ⇒ Object
20 21 22 23 24 |
# File 'lib/usps_api/models/mail_class3.rb', line 20 def self.from_value(value, default_value = FIRSTCLASS_MAIL) return default_value if value.nil? default_value end |
.validate(value) ⇒ Object
14 15 16 17 18 |
# File 'lib/usps_api/models/mail_class3.rb', line 14 def self.validate(value) return false if value.nil? MAIL_CLASS3.include?(value) end |