lib/intercom.rb in intercom-0.1.10 vs lib/intercom.rb in intercom-0.1.11

- old
+ new

@@ -35,19 +35,28 @@ # @return [String] def self.app_id=(app_id) @app_id = app_id end + def self.app_id + @app_id + end + ## # Set the api key to gain access to your application data. # When logged into your intercom console, you can view/create api keys in the settings menu # @param [String] api_key # @return [String] def self.api_key=(api_key) @api_key = api_key end + def self.api_key + @api_key + end + private + def self.target_base_url raise ArgumentError, "You must set both Intercom.app_id and Intercom.api_key to use this client. See https://github.com/intercom/intercom-ruby for usage examples." if [@app_id, @api_key].any?(&:nil?) basic_auth_part = "#{@app_id}:#{@api_key}@" current_endpoint.gsub(/(https?:\/\/)(.*)/, "\\1#{basic_auth_part}\\2") end \ No newline at end of file