Added method to expose API property descriptions.

This commit is contained in:
Bob Aman 2011-08-08 18:04:48 -04:00
parent b8bd8e3964
commit d9a108415b
1 changed files with 3 additions and 0 deletions

View File

@ -60,6 +60,9 @@ module Google
define_method(property_name + '_property') do define_method(property_name + '_property') do
v v
end end
define_method(property_name + '_description') do
v['description']
end
case v['type'] case v['type']
when 'string' when 'string'
define_string_property(property_name, k, v) define_string_property(property_name, k, v)