Skip to content

Commit

Permalink
ApiAiRuby::UserEntitiesRequest::update_entries
Browse files Browse the repository at this point in the history
  • Loading branch information
phbernard committed Mar 7, 2017
1 parent 39be6a4 commit f0edd01
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/api-ai-ruby/crud/user_entity_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,21 @@ def update(name, entries, extend = false)
response
end

def update_entries(name, entries)

raise ApiAiRuby::ClientError.new('Entity name required') if !name

@options = entries

@request_method = :put
@uri = @crud_base_uri + '/' + name + '/entries'
response = self.perform
@options.delete(:extend)
@options.delete(:name)
@options.delete(:entries)
response
end

def add_entries(name, entries)
raise ApiAiRuby::ClientError.new('Entity name required') if !name

Expand Down

0 comments on commit f0edd01

Please sign in to comment.