Class: ApimaticApi::ContentType
- Inherits:
-
Object
- Object
- ApimaticApi::ContentType
- Defined in:
- lib/apimatic_api/models/content_type.rb
Overview
Content-Type.
Constant Summary collapse
- CONTENT_TYPE =
[ # TODO: Write general description for ENUM_MULTIPARTFORMDATA ENUM_MULTIPARTFORMDATA = 'multipart/form-data'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = ENUM_MULTIPARTFORMDATA) ⇒ Object
20 21 22 23 24 |
# File 'lib/apimatic_api/models/content_type.rb', line 20 def self.from_value(value, default_value = ENUM_MULTIPARTFORMDATA) return default_value if value.nil? default_value end |
.validate(value) ⇒ Object
14 15 16 17 18 |
# File 'lib/apimatic_api/models/content_type.rb', line 14 def self.validate(value) return false if value.nil? CONTENT_TYPE.include?(value) end |