Class: MediaTypes::Serialization::Serializers::EndpointDescriptionSerializer
- Inherits:
-
Base
- Object
- Base
- MediaTypes::Serialization::Serializers::EndpointDescriptionSerializer
- Defined in:
- lib/media_types/serialization/serializers/endpoint_description_serializer.rb
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.to_input_identifiers(serializers) ⇒ Object
15 16 17 18 19 |
# File 'lib/media_types/serialization/serializers/endpoint_description_serializer.rb', line 15 def self.to_input_identifiers(serializers) serializers.flat_map do |s| s[:serializer].inputs_for(views: [s[:view]]).registrations.keys end end |
.to_output_identifiers(serializers) ⇒ Object
20 21 22 23 24 |
# File 'lib/media_types/serialization/serializers/endpoint_description_serializer.rb', line 20 def self.to_output_identifiers(serializers) serializers.flat_map do |s| s[:serializer].outputs_for(views: [s[:view]]).registrations.keys end end |