class Podio::PromotionGroup
Public Class Methods
create(attributes)
click to toggle source
# File lib/podio/models/promotion_group.rb, line 22 def create(attributes) member Podio.connection.post { |req| req.url("/promotion_group/") req.body = attributes }.body end
delete(promotion_group_id)
click to toggle source
# File lib/podio/models/promotion_group.rb, line 45 def delete(promotion_group_id) Podio.connection.delete("/promotion_group/#{promotion_group_id}") end
disable(promotion_group_id)
click to toggle source
# File lib/podio/models/promotion_group.rb, line 41 def disable(promotion_group_id) member Podio.connection.post("/promotion_group/#{promotion_group_id}/disable").body end
enable(promotion_group_id)
click to toggle source
# File lib/podio/models/promotion_group.rb, line 37 def enable(promotion_group_id) member Podio.connection.post("/promotion_group/#{promotion_group_id}/enable").body end
find(promotion_group_id)
click to toggle source
# File lib/podio/models/promotion_group.rb, line 18 def find(promotion_group_id) member Podio.connection.get("/promotion_group/#{promotion_group_id}").body end
find_all(options={})
click to toggle source
# File lib/podio/models/promotion_group.rb, line 12 def find_all(options={}) list Podio.connection.get { |req| req.url("/promotion_group/", options) }.body end
update(promotion_group_id, attributes)
click to toggle source
# File lib/podio/models/promotion_group.rb, line 29 def update(promotion_group_id, attributes) puts promotion_group_id, attributes member Podio.connection.put { |req| req.url("/promotion_group/#{promotion_group_id}") req.body = attributes }.body end