Class: ActiveForms::FormVersion
- Defined in:
- lib/active_forms/form_version.rb
Instance Attribute Summary
Attributes inherited from Mapper
Class Method Summary collapse
-
.all(params = {}) ⇒ Object
required params: apiFormCode.
Methods inherited from Mapper
#==, #apiVersion=, #initialize, #xmlns=
Constructor Details
This class inherits a constructor from ActiveForms::Mapper
Class Method Details
.all(params = {}) ⇒ Object
required params:
apiFormCode
10 11 12 13 14 15 16 17 |
# File 'lib/active_forms/form_version.rb', line 10 def all(params = {}) response = ActiveForms::Request.get("forminfo", params) hashes = response["formInfo"]["formVersion"] hashes = [hashes] if hashes.is_a?(Hash) objects = hashes.nil? ? [] : hashes.map { |attributes| new(attributes) } end |