Class: DocuSign_Rooms::RoomUserSortingOption

Inherits:
Object
  • Object
show all
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

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



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