Class: AftershipAPI::Model::TrackingSignatureRequirement
- Inherits:
-
Object
- Object
- AftershipAPI::Model::TrackingSignatureRequirement
- Defined in:
- lib/aftership-tracking-sdk/models/tracking_signature_requirement.rb
Constant Summary collapse
- SIGNATURE_REQUIRED =
"signature_required".freeze
- ADULT_SIGNATURE_REQUIRED =
"adult_signature_required".freeze
- INDIRECT_SIGNATURE_REQUIRED =
"indirect_signature_required".freeze
- NO_SIGNATURE_REQUIRED =
"no_signature_required".freeze
- NULL =
"null".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
10 11 12 |
# File 'lib/aftership-tracking-sdk/models/tracking_signature_requirement.rb', line 10 def self.all_vars @all_vars ||= [SIGNATURE_REQUIRED, ADULT_SIGNATURE_REQUIRED, INDIRECT_SIGNATURE_REQUIRED, NO_SIGNATURE_REQUIRED, NULL,].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
17 18 19 |
# File 'lib/aftership-tracking-sdk/models/tracking_signature_requirement.rb', line 17 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
24 25 26 27 |
# File 'lib/aftership-tracking-sdk/models/tracking_signature_requirement.rb', line 24 def build_from_hash(value) return value if TrackingSignatureRequirement.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #TrackingSignatureRequirement" end |