Class: HiEnergyAi::Resources::Contacts

Inherits:
HiEnergyAi::Resource show all
Defined in:
lib/hi_energy_ai/resources/contacts.rb

Instance Method Summary collapse

Methods inherited from HiEnergyAi::Resource

#initialize

Constructor Details

This class inherits a constructor from HiEnergyAi::Resource

Instance Method Details

#add(attributes, **params) ⇒ Object



14
15
16
# File 'lib/hi_energy_ai/resources/contacts.rb', line 14

def add(attributes, **params)
  post("/contacts/add", params: params, body: { contact: attributes })
end

#create(attributes, **params) ⇒ Object



10
11
12
# File 'lib/hi_energy_ai/resources/contacts.rb', line 10

def create(attributes, **params)
  post("/contacts", params: params, body: { contact: attributes })
end

#list(**params) ⇒ Object



6
7
8
# File 'lib/hi_energy_ai/resources/contacts.rb', line 6

def list(**params)
  get("/contacts", params: params)
end