Class: Yt::Collections::Subscriptions
Instance Method Summary
collapse
Methods inherited from Resources
#initialize, of
Instance Method Details
#delete_all(params = {}, options = {}) ⇒ Object
15
16
17
18
|
# File 'lib/yt/collections/subscriptions.rb', line 15
def delete_all(params = {}, options = {})
throttle
do_delete_all params
end
|
#insert(options = {}) ⇒ Object
8
9
10
11
12
13
|
# File 'lib/yt/collections/subscriptions.rb', line 8
def insert(options = {})
throttle
do_insert
rescue Yt::RequestError => error
raise error unless options[:ignore_duplicates] && error.reasons.include?('subscriptionDuplicate')
end
|