Module: WADL::RepresentationContainer
- Included in:
- RequestFormat, ResponseFormat
- Defined in:
- lib/wadl/representation_container.rb
Overview
A mixin for objects that contain representations
Instance Method Summary (collapse)
Instance Method Details
- (Object) find_form
41 42 43 |
# File 'lib/wadl/representation_container.rb', line 41 def find_form representations.find { |r| r.is_form_representation? } end |
- (Object) find_representation_by_media_type(type)
37 38 39 |
# File 'lib/wadl/representation_container.rb', line 37 def find_representation_by_media_type(type) representations.find { |r| r.mediaType == type } end |