Sha256: e62d54d0db22e1703732781875f6c91d2b9943b23b22a91dafe36eab9b6b7488
Contents?: true
Size: 575 Bytes
Versions: 5
Compression:
Stored size: 575 Bytes
Contents
module Supersaas # REF: https://www.supersaas.com/info/dev/form_api class Forms < BaseApi 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 def get(form_id) path = "/forms" params = {id: validate_id(form_id)} res = client.get(path, params) Supersaas::Form.new(res) end end end
Version data entries
5 entries across 5 versions & 1 rubygems