Class: VoxableApiAiRuby::GetEntityRequest
- Defined in:
- lib/voxable-api-ai-ruby/get_entity_request.rb
Instance Attribute Summary
Attributes inherited from Request
#client, #headers, #options, #request_method, #uri
Instance Method Summary collapse
-
#initialize(client, options = {}) ⇒ GetEntityRequest
constructor
A new instance of GetEntityRequest.
Methods inherited from Request
Constructor Details
#initialize(client, options = {}) ⇒ GetEntityRequest
Returns a new instance of GetEntityRequest.
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/voxable-api-ai-ruby/get_entity_request.rb', line 3 def initialize(client, ={}) @path = "entities/#{ .delete(:eid) }" super client, @request_method = :get # TODO: There should be a method for generating the proper headers. @headers = { 'Authorization': 'Bearer ' + client.developer_access_token } end |