Class: TrueConf::Entity::Call

Inherits:
Response
  • Object
show all
Extended by:
Callable
Defined in:
lib/true-conf/entity/call.rb

Class Method Summary collapse

Methods included from Callable

call

Methods inherited from Response

#error?, new, #success?

Class Method Details

.build(*res) ⇒ Object



23
24
25
26
# File 'lib/true-conf/entity/call.rb', line 23

def build(*res)
  body = res.last
  new JSON.parse(body.first)
end