Class: AmazonEcho::Request
- Inherits:
-
Object
- Object
- AmazonEcho::Request
show all
- Defined in:
- lib/amazon_echo/request.rb
Instance Method Summary
collapse
Constructor Details
#initialize(request) ⇒ Request
Returns a new instance of Request.
2
3
4
5
6
7
|
# File 'lib/amazon_echo/request.rb', line 2
def initialize(request)
@original_request = request
@version = request["version"]
@session = request["session"]
@request = request["request"]
end
|
Instance Method Details
#request ⇒ Object
21
22
23
|
# File 'lib/amazon_echo/request.rb', line 21
def request
@original_request
end
|
#request_id ⇒ Object
17
18
19
|
# File 'lib/amazon_echo/request.rb', line 17
def request_id
@request["requestId"]
end
|
#timestamp ⇒ Object
13
14
15
|
# File 'lib/amazon_echo/request.rb', line 13
def timestamp
@request["timestamp"]
end
|
#type ⇒ Object
9
10
11
|
# File 'lib/amazon_echo/request.rb', line 9
def type
@request["type"]
end
|