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

#find_formObject



39
40
41
# File 'lib/wadl/representation_container.rb', line 39

def find_form
  representations.find { |r| r.is_form_representation? }
end

#find_representation_by_media_type(type) ⇒ Object



35
36
37
# File 'lib/wadl/representation_container.rb', line 35

def find_representation_by_media_type(type)
  representations.find { |r| r.mediaType == type }
end