Class: DocuSign_Rooms::RoomUserSortingOption
- Inherits:
-
Object
- Object
- DocuSign_Rooms::RoomUserSortingOption
- Defined in:
- lib/docusign_rooms/models/room_user_sorting_option.rb
Constant Summary collapse
- FIRST_NAME_ASC =
'FirstNameAsc'.freeze
- LAST_NAME_ASC =
'LastNameAsc'.freeze
- EMAIL_ASC =
'EmailAsc'.freeze
- FIRST_NAME_DESC =
'FirstNameDesc'.freeze
- LAST_NAME_DESC =
'LastNameDesc'.freeze
- EMAIL_DESC =
'EmailDesc'.freeze
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
27 28 29 30 31 |
# File 'lib/docusign_rooms/models/room_user_sorting_option.rb', line 27 def build_from_hash(value) constantValues = RoomUserSortingOption.constants.select { |c| RoomUserSortingOption::const_get(c) == value } raise "Invalid ENUM value #{value} for class #RoomUserSortingOption" if constantValues.empty? value end |