Class: DocuSign_Rooms::ListingType
- Inherits:
-
Object
- Object
- DocuSign_Rooms::ListingType
- Defined in:
- lib/docusign_rooms/models/listing_type.rb
Constant Summary collapse
- PUBLIC_RECORDS =
'PublicRecords'.freeze
- MLS =
'MLS'.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
23 24 25 26 27 |
# File 'lib/docusign_rooms/models/listing_type.rb', line 23 def build_from_hash(value) constantValues = ListingType.constants.select { |c| ListingType::const_get(c) == value } raise "Invalid ENUM value #{value} for class #ListingType" if constantValues.empty? value end |