Class: ForestAdminDatasourceZendesk::Datasource

Inherits:
ForestAdminDatasourceToolkit::Datasource
  • Object
show all
Defined in:
lib/forest_admin_datasource_zendesk/datasource.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(subdomain:, username:, token:) ⇒ Datasource

Returns a new instance of Datasource.



5
6
7
8
9
10
11
12
# File 'lib/forest_admin_datasource_zendesk/datasource.rb', line 5

def initialize(subdomain:, username:, token:)
  super()
  @configuration = Configuration.new(subdomain: subdomain, username: username, token: token)
  @client = Client.new(@configuration)
  @custom_field_mapping = {}

  register_collections
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



3
4
5
# File 'lib/forest_admin_datasource_zendesk/datasource.rb', line 3

def client
  @client
end

#configurationObject (readonly)

Returns the value of attribute configuration.



3
4
5
# File 'lib/forest_admin_datasource_zendesk/datasource.rb', line 3

def configuration
  @configuration
end

#custom_field_mappingObject (readonly)

Returns the value of attribute custom_field_mapping.



3
4
5
# File 'lib/forest_admin_datasource_zendesk/datasource.rb', line 3

def custom_field_mapping
  @custom_field_mapping
end