Class: CircleSo::Resources::CommunitySegments

Inherits:
Base
  • Object
show all
Defined in:
lib/circle_so/resources/community_segments.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from CircleSo::Resources::Base

Instance Method Details

#create(**attrs) ⇒ Object



7
# File 'lib/circle_so/resources/community_segments.rb', line 7

def create(**attrs) = client.post("/community_segments", attrs)

#delete(id) ⇒ Object



9
# File 'lib/circle_so/resources/community_segments.rb', line 9

def delete(id) = client.delete("/community_segments/#{id}")

#duplicate(id) ⇒ Object



10
# File 'lib/circle_so/resources/community_segments.rb', line 10

def duplicate(id) = client.post("/community_segments/#{id}/duplicate")

#list(**params) ⇒ Object



6
# File 'lib/circle_so/resources/community_segments.rb', line 6

def list(**params) = client.get("/community_segments", params)

#update(id, **attrs) ⇒ Object



8
# File 'lib/circle_so/resources/community_segments.rb', line 8

def update(id, **attrs) = client.put("/community_segments/#{id}", attrs)