Class: Zype::Plans
Overview
Constant Summary
Constants inherited from BaseModel
Instance Attribute Summary
Attributes inherited from BaseModel
Instance Method Summary collapse
-
#add_playlists(id:, params:) ⇒ Object
Only for tiered subscription plans.
-
#remove_playlists(id:, params:) ⇒ Object
This will remove playlists from the specified plan.
Methods inherited from BaseModel
#all, #auth=, #create, #delete, #find, #initialize, #update
Constructor Details
This class inherits a constructor from Zype::BaseModel
Instance Method Details
#add_playlists(id:, params:) ⇒ Object
Only for tiered subscription plans. Read more here docs.zype.com/v1.0/reference#addplaylists-1
return [Hash]
12 13 14 |
# File 'lib/zype/models/plans.rb', line 12 def add_playlists(id:, params:) client.execute(method: :put, path: "/#{path}/#{id}/add_playlists", params: params) end |
#remove_playlists(id:, params:) ⇒ Object
This will remove playlists from the specified plan
return [Hash]
21 22 23 |
# File 'lib/zype/models/plans.rb', line 21 def remove_playlists(id:, params:) client.execute(method: :put, path: "/#{path}/#{id}/remove_playlists", params: params) end |