Class: Composio::Method
- Inherits:
-
Object
- Object
- Composio::Method
- Defined in:
- lib/composio/models/method.rb
Constant Summary collapse
- GET =
"GET".freeze
- POST =
"POST".freeze
- PUT =
"PUT".freeze
- PATCH =
"PATCH".freeze
- DELETE =
"DELETE".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/method.rb', line 20 def self.all_vars @all_vars ||= [GET, POST, PUT, PATCH, DELETE].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
27 28 29 |
# File 'lib/composio/models/method.rb', line 27 def self.build_from_hash(value) new.build_from_hash(value) end |