Module: ForestAdminDatasourceZendesk::Client::Introspection
- Included in:
- ForestAdminDatasourceZendesk::Client
- Defined in:
- lib/forest_admin_datasource_zendesk/client/introspection.rb
Instance Method Summary collapse
Instance Method Details
#fetch_organization_fields ⇒ Object
16 17 18 19 20 |
# File 'lib/forest_admin_datasource_zendesk/client/introspection.rb', line 16 def fetch_organization_fields best_effort('fetch_organization_fields (custom fields will be unavailable)', default: []) do Array(api.connection.get('organization_fields').body['organization_fields']) end end |
#fetch_ticket_fields ⇒ Object
4 5 6 7 8 |
# File 'lib/forest_admin_datasource_zendesk/client/introspection.rb', line 4 def fetch_ticket_fields best_effort('fetch_ticket_fields (custom fields will be unavailable)', default: []) do Array(api.connection.get('ticket_fields').body['ticket_fields']) end end |
#fetch_user_fields ⇒ Object
10 11 12 13 14 |
# File 'lib/forest_admin_datasource_zendesk/client/introspection.rb', line 10 def fetch_user_fields best_effort('fetch_user_fields (custom fields will be unavailable)', default: []) do Array(api.connection.get('user_fields').body['user_fields']) end end |