Class: Composio::Plan
- Inherits:
-
Object
- Object
- Composio::Plan
- Defined in:
- lib/composio/models/plan.rb
Constant Summary collapse
- HOBBY =
"HOBBY".freeze
- STARTER =
"STARTER".freeze
- GROWTH =
"GROWTH".freeze
- ENTERPRISE =
"ENTERPRISE".freeze
- STARTUP =
"STARTUP".freeze
Class Method Summary collapse
- .all_vars ⇒ Object
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.all_vars ⇒ Object
20 21 22 |
# File 'lib/composio/models/plan.rb', line 20 def self.all_vars @all_vars ||= [HOBBY, STARTER, GROWTH, ENTERPRISE, STARTUP].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
27 28 29 |
# File 'lib/composio/models/plan.rb', line 27 def self.build_from_hash(value) new.build_from_hash(value) end |