|
2 | 2 |
|
3 | 3 | module ApiAiRuby
|
4 | 4 | class Client
|
5 |
| - attr_accessor :client_access_token, :subscription_key, :timeout_options |
| 5 | + attr_accessor :client_access_token, :timeout_options |
6 | 6 | attr_writer :user_agent, :api_version, :api_lang, :api_base_url, :api_session_id
|
7 | 7 |
|
8 | 8 | # Initializes a new Client object
|
9 |
| - # |
10 | 9 | # @param options [Hash]
|
11 | 10 | # @return [ApiAiRuby::Client]
|
12 | 11 | def initialize(options = {})
|
@@ -66,19 +65,8 @@ def voice_request(file_stream, options = {})
|
66 | 65 | ApiAiRuby::VoiceRequest.new(self, options).perform
|
67 | 66 | end
|
68 | 67 |
|
69 |
| - # @param entity_name [String] |
70 |
| - # @param entries [ApiAiRuby:Entry[]] |
71 |
| - # @param options [Hash] |
72 |
| - |
73 |
| - def user_entities_request #entity_name, entries, options = {} |
| 68 | + def user_entities_request |
74 | 69 | ApiAiRuby::UserEntitiesRequest.new(self);
|
75 |
| - # raise ApiAiRuby::ClientError.new('Entity name required') if entity_name.nil? |
76 |
| - # raise ApiAiRuby::ClientError.new('Entity entries array required') if !entries.nil? && entries.is_a?(Array) |
77 |
| - # raise ApiAiRuby::ClientError.new('Entity name required') if !(options.has_key?(:entries) && options[:entries].is_a?(Array)) |
78 |
| - # options[:name] = entity_name |
79 |
| - # options[:entries] = entries |
80 |
| - # options[:extend] = options[:extend] || false |
81 |
| - # ApiAiRuby::UserEntitiesRequest.new(self, options).perform |
82 | 70 | end
|
83 | 71 |
|
84 | 72 | end
|
|
0 commit comments