Class: Fopost::Resources::Labels

Inherits:
Base
  • Object
show all
Defined in:
lib/fopost/resources/labels.rb

Overview

client.labels — workspace labels you can attach to posts.

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

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

Instance Method Details

#list(workspace_id: nil) ⇒ Object



7
8
9
# File 'lib/fopost/resources/labels.rb', line 7

def list(workspace_id: nil)
  parse_list(Label, unwrap(http.get('/labels', { 'workspace_id' => workspace_id })))
end