Class: ForestAdminDatasourceZendesk::Datasource
- Inherits:
-
ForestAdminDatasourceToolkit::Datasource
- Object
- ForestAdminDatasourceToolkit::Datasource
- ForestAdminDatasourceZendesk::Datasource
- Defined in:
- lib/forest_admin_datasource_zendesk/datasource.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
-
#custom_field_mapping ⇒ Object
readonly
Returns the value of attribute custom_field_mapping.
Instance Method Summary collapse
-
#initialize(subdomain:, username:, token:) ⇒ Datasource
constructor
A new instance of Datasource.
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
#client ⇒ Object (readonly)
Returns the value of attribute client.
3 4 5 |
# File 'lib/forest_admin_datasource_zendesk/datasource.rb', line 3 def client @client end |
#configuration ⇒ Object (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_mapping ⇒ Object (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 |