lib/flapjack-diner/resources/media.rb in flapjack-diner-2.0.0.pre.alpha.2 vs lib/flapjack-diner/resources/media.rb in flapjack-diner-2.0.0.pre.alpha.3

- old
+ new

@@ -17,11 +17,11 @@ validate :query => [:address, :pagerduty_subdomain, :pagerduty_token], :as => :non_empty_string validate :query => [:interval, :rollup_threshold, :pagerduty_ack_duration], :as => :positive_integer validate :query => :contact, :as => [:singular_link_uuid, :required] - validate :query => :rules, :as => :multiple_link_uuid + validate :query => [:acceptors, :rejectors], :as => :multiple_link_uuid end perform_post(:media, "/media", data) end def media(*args) @@ -40,10 +40,10 @@ validate :query => :id, :as => [:uuid, :required] validate :query => [:address, :pagerduty_subdomain, :pagerduty_token], :as => :non_empty_string validate :query => [:interval, :rollup_threshold, :pagerduty_ack_duration], :as => :positive_integer - validate :query => :rules, :as => :multiple_link_uuid + validate :query => [:acceptors, :rejectors], :as => :multiple_link_uuid end perform_patch(:media, "/media", data) end def delete_media(*ids)