Skip to content

Instantly share code, notes, and snippets.

@lamp
Created November 25, 2010 14:54
Show Gist options
  • Select an option

  • Save lamp/715497 to your computer and use it in GitHub Desktop.

Select an option

Save lamp/715497 to your computer and use it in GitHub Desktop.
{
"format" = >nil,
"action" = >"update",
"_method" = >"put",
"id" = >"45",
"campaign" = >{
"name" = >"kjfkjhfkjhg",
"presentations" = >"tagged",
"tag_list" = >"",
"insert_domain" = >"com.videojuicer.asset"
},
"insert_6d8a3582" = >{
"duration" = >"30000",
"asset_type" = >"com.videojuicer.core.asset.Video",
"role" = >"preroll",
"offset_x" = >"0",
"anchor_x" = >"left",
"offset_time" = >"0",
"offset_y" = >"0",
"anchor_y" = >"top",
"click_href" = >"",
"asset_id" = >"95"
},
"controller" = >"campaigns",
"criterion_date_range_1" = >{
"from" = >{
"_minutes" = >"51",
"_month" = >"11",
"_hours" = >"14",
"_year" = >"2010",
"_day" = >"25"
},
"type" = >"date_range",
"until" = >{
"_minutes" = >"51",
"_month" = >"11",
"_hours" = >"14",
"_year" = >"2010",
"_day" = >"25"
}
},
"criterion_geolocation_6d841472" = >{
"country" = >"GBR",
"exclude" = >"false",
"type" = >"geolocation"
}
}
================
# < Videojuicer::Criterion::DateRange: 0x1104f2868@dirty_attribute_keys = [: campaign_id, :from, :until],
@errors = {
"ensure_from_or_until" = >["One or both of \"from\" or \"until\" must be set"]
},
@invalid_attributes = {
"from" = >{
"_minutes" = >"51",
"_month" = >"11",
"_hours" = >"14",
"_year" = >"2010",
"_day" = >"25"
},
"until" = >{
"_minutes" = >"51",
"_month" = >"11",
"_hours" = >"14",
"_year" = >"2010",
"_day" = >"25"
}
},
@attributes = {: until = >true,
:from = >true,
:campaign_id = >45,
:id = >nil
} >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment