Class: Pipedrive::IconKey

Inherits:
Object
  • Object
show all
Defined in:
lib/pipedrive-openapi-client/models/icon_key.rb

Constant Summary collapse

TASK =
"task".freeze
EMAIL =
"email".freeze
MEETING =
"meeting".freeze
DEADLINE =
"deadline".freeze
CALL =
"call".freeze
LUNCH =
"lunch".freeze
CALENDAR =
"calendar".freeze
DOWNARROW =
"downarrow".freeze
DOCUMENT =
"document".freeze
SMARTPHONE =
"smartphone".freeze
CAMERA =
"camera".freeze
SCISSORS =
"scissors".freeze
COGS =
"cogs".freeze
BUBBLE =
"bubble".freeze
UPARROW =
"uparrow".freeze
CHECKBOX =
"checkbox".freeze
SIGNPOST =
"signpost".freeze
SHUFFLE =
"shuffle".freeze
ADDRESSBOOK =
"addressbook".freeze
LINEGRAPH =
"linegraph".freeze
PICTURE =
"picture".freeze
CAR =
"car".freeze
WORLD =
"world".freeze
SEARCH =
"search".freeze
CLIP =
"clip".freeze
SOUND =
"sound".freeze
BRUSH =
"brush".freeze
KEY =
"key".freeze
PADLOCK =
"padlock".freeze
PRICETAG =
"pricetag".freeze
SUITCASE =
"suitcase".freeze
FINISH =
"finish".freeze
PLANE =
"plane".freeze
LOOP =
"loop".freeze
WIFI =
"wifi".freeze
TRUCK =
"truck".freeze
CART =
"cart".freeze
BULB =
"bulb".freeze
BELL =
"bell".freeze
PRESENTATION =
"presentation".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class 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



61
62
63
# File 'lib/pipedrive-openapi-client/models/icon_key.rb', line 61

def self.build_from_hash(value)
  new.build_from_hash(value)
end

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



68
69
70
71
72
# File 'lib/pipedrive-openapi-client/models/icon_key.rb', line 68

def build_from_hash(value)
  constantValues = IconKey.constants.select { |c| IconKey::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #IconKey" if constantValues.empty?
  value
end