Sha256: ebd5b422b9bcf87a54399e4d2b838687765ee52e9291dbd995101235843d49f5
Contents?: true
Size: 754 Bytes
Versions: 17
Compression:
Stored size: 754 Bytes
Contents
require 'xampl_generated_code/RandomPeople' module RandomPeople class Person Xampl::TokyoCabinetPersister.add_lexical_indexs(%w{ surname city state email }) def describe_yourself { 'surname' => self.surname, 'city' => self.address.first.city, 'state' => self.address.first.state, 'email' => self.email } end end class Address Xampl::TokyoCabinetPersister.add_lexical_indexs(%w{ street-address postal-code city state }) def describe_yourself { 'street-address' => self.street_address, 'postal-code' => self.postal_code, 'city' => self.city, 'state' => self.state } end end end
Version data entries
17 entries across 17 versions & 2 rubygems