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

Version Path
hutch-xamplr-1.1.0 examples/random-people-shared-addresses/people.rb
hutch-xamplr-1.1.1 examples/random-people-shared-addresses/people.rb
hutch-xamplr-1.1.2 examples/random-people-shared-addresses/people.rb
hutch-xamplr-1.1.4 examples/random-people-shared-addresses/people.rb
hutch-xamplr-1.2.0 examples/random-people-shared-addresses/people.rb
hutch-xamplr-1.3.0 examples/random-people-shared-addresses/people.rb
hutch-xamplr-1.3.1 examples/random-people-shared-addresses/people.rb
hutch-xamplr-1.3.10 examples/random-people-shared-addresses/people.rb
hutch-xamplr-1.3.11 examples/random-people-shared-addresses/people.rb
hutch-xamplr-1.3.12 examples/random-people-shared-addresses/people.rb
hutch-xamplr-1.3.13 examples/random-people-shared-addresses/people.rb
hutch-xamplr-1.3.14 examples/random-people-shared-addresses/people.rb
hutch-xamplr-1.3.3 examples/random-people-shared-addresses/people.rb
hutch-xamplr-1.3.8 examples/random-people-shared-addresses/people.rb
hutch-xamplr-1.3.9 examples/random-people-shared-addresses/people.rb
xamplr-1.3.15 examples/random-people-shared-addresses/people.rb
xamplr-1.2.0 examples/random-people-shared-addresses/people.rb