Class: Line::Bot::Response

Inherits:
Array
  • Object
show all
Defined in:
lib/line/bot/response.rb

Instance Method Summary collapse

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