Skip to content

Instantly share code, notes, and snippets.

@justinpeterman
Created August 5, 2011 06:49
Show Gist options
  • Save justinpeterman/1127042 to your computer and use it in GitHub Desktop.
Save justinpeterman/1127042 to your computer and use it in GitHub Desktop.
data in models
Authoring.Campaign.FIXTURES = [
{
user_id: 2,
campaign_id: 1,
name: "Pepsi Faceoff Campaign",
thumb: 'path/to/image',
purchased_hits: 0,
current_hits: 0,
started: '2010-07-24',
ended: '2010-07-31',
modified: [{
user_id: 2,
time: 2010 - 07 - 26,
}],
live: 0,
pages: [
{
name: "Landing Page",
description: "Landing Pages are where it all begins. Capture your audience with a strong call to action and have them explore your interactive advertisement on their device.",
icon: 'path/to/icon.png',
elements: [{
type: 1,
name: "Header",
description: "Header description",
value: 'Im a sample header',
properties: ["HeaderView"]
}]
},
//another page object...
Authoring.Campaign.FIXTURES = [
{
user_id: 2,
campaign_id: 1,
name: "Pepsi Faceoff Campaign",
thumb: 'path/to/image',
purchased_hits: 0,
current_hits: 0,
started: '2010-07-24',
ended: '2010-07-31',
modified: [{
user_id: 2,
time: 2010 - 07 - 26,
}],
live: 0,
pages: [
{
page_type: 1,
elements: [{
type: 1,
value: "I'm a sample header"
properties: ["HeaderView"]
}]
},
//another page object...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment