Class: Line::Bot::Response
- Inherits:
-
Array
- Object
- Array
- Line::Bot::Response
- Defined in:
- lib/line/bot/response.rb
Instance Method Summary collapse
-
#initialize(data = "") ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(data = "") ⇒ Response
Returns a new instance of Response.
6 7 8 9 10 |
# File 'lib/line/bot/response.rb', line 6 def initialize(data = "") json = JSON.parse(data) self.concat(json['result']) parse_event end |