Skip to content

Commit

Permalink
[*] NOTICKET: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Gugic committed Oct 26, 2016
1 parent 3c3c59f commit 2e99005
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions lib/api-ai-ruby/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@

module ApiAiRuby
class Client
attr_accessor :client_access_token, :subscription_key, :timeout_options
attr_accessor :client_access_token, :timeout_options
attr_writer :user_agent, :api_version, :api_lang, :api_base_url, :api_session_id

# Initializes a new Client object
#
# @param options [Hash]
# @return [ApiAiRuby::Client]
def initialize(options = {})
Expand Down Expand Up @@ -66,19 +65,8 @@ def voice_request(file_stream, options = {})
ApiAiRuby::VoiceRequest.new(self, options).perform
end

# @param entity_name [String]
# @param entries [ApiAiRuby:Entry[]]
# @param options [Hash]

def user_entities_request #entity_name, entries, options = {}
def user_entities_request
ApiAiRuby::UserEntitiesRequest.new(self);
# raise ApiAiRuby::ClientError.new('Entity name required') if entity_name.nil?
# raise ApiAiRuby::ClientError.new('Entity entries array required') if !entries.nil? && entries.is_a?(Array)
# raise ApiAiRuby::ClientError.new('Entity name required') if !(options.has_key?(:entries) && options[:entries].is_a?(Array))
# options[:name] = entity_name
# options[:entries] = entries
# options[:extend] = options[:extend] || false
# ApiAiRuby::UserEntitiesRequest.new(self, options).perform
end

end
Expand Down

0 comments on commit 2e99005

Please sign in to comment.