Class: Velocify::FieldType
- Inherits:
-
Object
- Object
- Velocify::FieldType
- Includes:
- Model
- Defined in:
- lib/velocify/field_type.rb
Class Method Summary collapse
-
.find_all(destruct: false, return_array: false) ⇒ Hash
A list of fields.
Methods included from Model
Class Method Details
.find_all(destruct: false, return_array: false) ⇒ Hash
Returns a list of fields.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/velocify/field_type.rb', line 6 def self.find_all destruct: false, return_array: false verify_credentials! request do destruct_response? destruct operation :get_field_types authenticate? true transform do |resp| if return_array arrayify resp[:field_types][:field_type] else resp end end end end |