Sha256: 459fd0ad3ee812602ef2069221f358cf3114c29fbc34aafdb76153614c11e864

Contents?: true

Size: 1.88 KB

Versions: 4

Compression:

Stored size: 1.88 KB

Contents

bloggs: 
  |
    { 
      "restful_url": "http://example.com:3000/people/<%= @person.to_param %>",
      "wallet": { 
        "restful_url": "http://example.com:3000/wallets/<%= @person.wallet.to_param %>",
        "contents": "an old photo, 5 euros in coins" 
      },
      "current_location": "Under a tree",
      "name": "Joe Bloggs",
      "pets": [ { 
        "restful_url": "http://example.com:3000/pets/<%= @person.pets.first.to_param %>", 
        "name": "mietze" 
       }],
      "created_at": "<%= @person.created_at.xmlschema %>"
    }

bloggs_with_oldest_pet:
  |
    { 
       "restful_url": "http://example.com:3000/people/<%= @person.to_param %>",
       "oldest_pet": { 
         "restful_url": "http://example.com:3000/pets/<%= @person.pets.first.to_param %>", 
         "name": "mietze" 
       }
    }

bloggs_with_birthday:
  |
    { 
      "restful_url": "http://example.com:3000/people/<%= @person.to_param %>",
      "birthday": "<%= @person.birthday.to_s(:db) %>"
    }

bloggs_with_pets_ages_hash:
  |
    { 
      "restful_url": "http://example.com:3000/people/<%= @person.to_param %>",
      "pets_ages_hash": {
        "mietze": 200,
        "motze": 100
      }
    }
bloggs_with_has_pets:
  |
    { 
      "restful_url": "http://example.com:3000/people/<%= @person.to_param %>",
      "has_pets": true
    }
bloggs_with_hasno_pets:
  |
    { 
      "restful_url": "http://example.com:3000/people/<%= @person.to_param %>",
      "has_pets": false
    }


bloggs_da_pet_hater:
  |
    { 
      "restful_url": "http://example.com:3000/people/<%= @person.to_param %>",
      "wallet": { 
        "restful_url": "http://example.com:3000/wallets/<%= @person.wallet.to_param %>",
        "contents": "an old photo, 5 euros in coins" 
      },
      "current_location": "Under a tree",
      "name": "Joe Bloggs",
      "pets": [],
      "created_at": "<%= @person.created_at.xmlschema %>"
    }

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
purzelrakete-restful-0.2.3 test/fixtures/people.json.yaml
purzelrakete-restful-0.2.4 test/fixtures/people.json.yaml
purzelrakete-restful-0.2.5 test/fixtures/people.json.yaml
purzelrakete-restful-0.2.6 test/fixtures/people.json.yaml