Class: VoxableApiAiRuby::GetEntityRequest

Inherits:
Request
  • Object
show all
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

Methods inherited from Request

#perform

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, options={})
  @path = "entities/#{ options.delete(:eid) }"

  super client, options
  @request_method = :get

  # TODO: There should be a method for generating the proper headers.
  @headers = {
    'Authorization': 'Bearer ' + client.developer_access_token
  }
end