Class: CircleSo::Resources::Images

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

Overview

Image posts inside a space (/spaces/space_id/images/posts).

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

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

Instance Method Details

#create_post(space_id, **attrs) ⇒ Object



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

def create_post(space_id, **attrs) = client.post("/spaces/#{space_id}/images/posts", attrs)

#delete_post(space_id, id) ⇒ Object



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

def delete_post(space_id, id) = client.delete("/spaces/#{space_id}/images/posts/#{id}")

#duplicate_post(space_id, id) ⇒ Object



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

def duplicate_post(space_id, id) = client.post("/spaces/#{space_id}/images/posts/#{id}/duplicate")