module WADL::RepresentationContainer

A mixin for objects that contain representations

Public Instance Methods

find_form() click to toggle source
# 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) click to toggle source
# File lib/wadl/representation_container.rb, line 35
def find_representation_by_media_type(type)
  representations.find { |r| r.mediaType == type }
end