class Supersaas::Forms
Public Instance Methods
get(form_id)
click to toggle source
# File lib/supersaas-api-client/api/forms.rb, line 14 def get(form_id) path = "/forms" params = {id: validate_id(form_id)} res = client.get(path, params) Supersaas::Form.new(res) end
list(template_form_id, from_time=nil)
click to toggle source
# File lib/supersaas-api-client/api/forms.rb, line 4 def list(template_form_id, from_time=nil) path = "/forms" params = { form_id: validate_id(template_form_id), from: from_time ? validate_datetime(from_time) : nil } res = client.get(path, params) res.map { |attributes| Supersaas::Form.new(attributes) } end