Module: Persona::Actions::Inquiries

Included in:
Client
Defined in:
lib/persona-ruby/actions/inquiries.rb

Instance Method Summary collapse

Instance Method Details

#inquiry_create(attributes = {}) ⇒ Object



14
15
16
# File 'lib/persona-ruby/actions/inquiries.rb', line 14

def inquiry_create(attributes = {})
  connection.post("inquiries", { data: { attributes: } })
end

#inquiry_delete(id) ⇒ Object



22
23
24
# File 'lib/persona-ruby/actions/inquiries.rb', line 22

def inquiry_delete(id)
  connection.delete("inquiries/#{id}", {})
end

#inquiry_get(id) ⇒ Object



10
11
12
# File 'lib/persona-ruby/actions/inquiries.rb', line 10

def inquiry_get(id)
  connection.get("inquiries/#{id}", {})
end

#inquiry_list(params = {}) ⇒ Object



6
7
8
# File 'lib/persona-ruby/actions/inquiries.rb', line 6

def inquiry_list(params = {})
  connection.get("inquiries", params)
end


26
27
28
# File 'lib/persona-ruby/actions/inquiries.rb', line 26

def inquiry_one_time_link(id, options = {})
  connection.post("inquiries/#{id}/generate-one-time-link", options)
end

#inquiry_update(id, attributes = {}) ⇒ Object



18
19
20
# File 'lib/persona-ruby/actions/inquiries.rb', line 18

def inquiry_update(id, attributes = {})
  connection.patch("inquiries/#{id}", { data: { attributes: } })
end