Class: GDSZendesk::Client
- Inherits:
-
Object
- Object
- GDSZendesk::Client
- Extended by:
- Forwardable
- Defined in:
- lib/gds_zendesk/client.rb
Instance Attribute Summary collapse
-
#config_options ⇒ Object
Returns the value of attribute config_options.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(config_options) ⇒ Client
constructor
A new instance of Client.
- #users ⇒ Object
Constructor Details
#initialize(config_options) ⇒ Client
Returns a new instance of Client.
14 15 16 17 |
# File 'lib/gds_zendesk/client.rb', line 14 def initialize() @config_options = defaults.merge() @zendesk_client = build end |
Instance Attribute Details
#config_options ⇒ Object
Returns the value of attribute config_options.
12 13 14 |
# File 'lib/gds_zendesk/client.rb', line 12 def @config_options end |
Instance Method Details
#build ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/gds_zendesk/client.rb', line 23 def build check_that_username_and_password_are_provided ZendeskAPI::Client.new { |config| config.url = url config.username = username config.token = token if token config.password = password if password config.logger = logger } end |