Class: NewStoreApi::FtAtStateEnum
- Inherits:
-
Object
- Object
- NewStoreApi::FtAtStateEnum
- Defined in:
- lib/new_store_api/models/ft_at_state_enum.rb
Overview
Queue state after signing.
Constant Summary collapse
- FT_AT_STATE_ENUM =
[ # TODO: Write general description for OK OK = 'OK'.freeze, # TODO: Write general description for OUT_OF_SERVICE OUT_OF_SERVICE = 'OUT_OF_SERVICE'.freeze, # TODO: Write general description for SSCD_TEMPORARY_OUT_OF_SERVICE SSCD_TEMPORARY_OUT_OF_SERVICE = 'SSCD_TEMPORARY_OUT_OF_SERVICE'.freeze, # TODO: Write general description for SSCD_PERMANENETLY_OUT_OF_SERVICE SSCD_PERMANENETLY_OUT_OF_SERVICE = 'SSCD_PERMANENETLY_OUT_OF_SERVICE'.freeze, # TODO: Write general description for SUBSEQUENT_ENTRY_ACTIVATED SUBSEQUENT_ENTRY_ACTIVATED = 'SUBSEQUENT_ENTRY_ACTIVATED'.freeze, # TODO: Write general description for MONTHLY_REPORT_DUE MONTHLY_REPORT_DUE = 'MONTHLY_REPORT_DUE'.freeze, # TODO: Write general description for ANNUAL_REPORT_DUE ANNUAL_REPORT_DUE = 'ANNUAL_REPORT_DUE'.freeze, # TODO: Write general description for MESSAGE_PENDING MESSAGE_PENDING = 'MESSAGE_PENDING'.freeze, # TODO: Write general description for SSCD_BACKUP_IN_USE SSCD_BACKUP_IN_USE = 'SSCD_BACKUP_IN_USE'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = OK) ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/new_store_api/models/ft_at_state_enum.rb', line 44 def self.from_value(value, default_value = OK) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'ok' then OK when 'out_of_service' then OUT_OF_SERVICE when 'sscd_temporary_out_of_service' then SSCD_TEMPORARY_OUT_OF_SERVICE when 'sscd_permanenetly_out_of_service' then SSCD_PERMANENETLY_OUT_OF_SERVICE when 'subsequent_entry_activated' then SUBSEQUENT_ENTRY_ACTIVATED when 'monthly_report_due' then MONTHLY_REPORT_DUE when 'annual_report_due' then ANNUAL_REPORT_DUE when 'message_pending' then MESSAGE_PENDING when 'sscd_backup_in_use' then SSCD_BACKUP_IN_USE else default_value end end |
.validate(value) ⇒ Object
38 39 40 41 42 |
# File 'lib/new_store_api/models/ft_at_state_enum.rb', line 38 def self.validate(value) return false if value.nil? FT_AT_STATE_ENUM.include?(value) end |