Class: Brightpearl::ContactCustomFieldMetadata
- Defined in:
- lib/brightpearl/resources/contact_custom_field_metadata.rb
Overview
Constant Summary collapse
- VALID_CONTACT_TYPES =
["customer", "supplier"].freeze
Class Method Summary collapse
Methods inherited from Resource
Class Method Details
.get(contact_type, id_set = nil) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/brightpearl/resources/contact_custom_field_metadata.rb', line 7 def get(contact_type, id_set = nil) contact_type = contact_type.to_s validate_contact_type!(contact_type) path = "contact-service/#{contact_type}/custom-field-meta-data" path = "#{path}/#{id_set}" if id_set send_request(path: path, method: :get) end |