Class: FdxV660Api::UpdateReason2
- Inherits:
-
Object
- Object
- FdxV660Api::UpdateReason2
- Defined in:
- lib/fdx_v660_api/models/update_reason2.rb
Overview
The reason for the revocation or status change, one of BUSINESS_RULE,
SECURITY_EVENT, USER_ACTION or OTHER
Constant Summary collapse
- UPDATE_REASON2 =
[ # TODO: Write general description for BUSINESS_RULE BUSINESS_RULE = 'BUSINESS_RULE'.freeze, # TODO: Write general description for OTHER OTHER = 'OTHER'.freeze, # TODO: Write general description for SECURITY_EVENT SECURITY_EVENT = 'SECURITY_EVENT'.freeze, # TODO: Write general description for USER_ACTION USER_ACTION = 'USER_ACTION'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = BUSINESS_RULE) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/fdx_v660_api/models/update_reason2.rb', line 30 def self.from_value(value, default_value = BUSINESS_RULE) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'business_rule' then BUSINESS_RULE when 'other' then OTHER when 'security_event' then SECURITY_EVENT when 'user_action' then USER_ACTION else default_value end end |
.validate(value) ⇒ Object
24 25 26 27 28 |
# File 'lib/fdx_v660_api/models/update_reason2.rb', line 24 def self.validate(value) return false if value.nil? true end |