class Pipl::API::Response
Attributes
data[R]
person[R]
status[R]
warnings[R]
Public Class Methods
new(raw)
click to toggle source
# File lib/pipl/api/response.rb, line 15 def initialize(raw) @data = MultiJson.load(raw) @status = @data.delete("@http_status_code") @warnings = @data.delete("warnings") @person = Person.new(@data) end
Public Instance Methods
ok?()
click to toggle source
# File lib/pipl/api/response.rb, line 22 def ok? status == 200 end