Class: FlockOs::Api::Rooster

Inherits:
Base
  • Object
show all
Defined in:
lib/flock_os/api/rooster.rb

Constant Summary collapse

PATH =
'rooster'

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from FlockOs::Api::Base

Instance Method Details

#list_contactsObject



6
7
8
9
10
# File 'lib/flock_os/api/rooster.rb', line 6

def list_contacts
  response = @client.post("#{PATH}.listContacts")
  
  FlockOs::Collection::PublicProfile.new(response)
end