79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
# File 'lib/evva/android_generator.rb', line 79
def people_properties(people_bundle, file_name, enums_file_name, destinations_file_name)
do
class_name = file_name
enums_class_name = enums_file_name
destinations_class_name = destinations_file_name
properties = people_bundle.map do |property|
type = native_type(property.type)
{
class_name: camelize(property.property_name),
property_name: constantize(property.property_name),
type: type,
is_special_property: is_special_property?(property.type),
destinations: property.destinations.map { |p| constantize(p) },
}
end
template_from(PEOPLE_PROPERTIES_TEMPLATE).result(binding)
end
end
|