class Xdelivery::API::Response::Base
Attributes
data[RW]
response[RW]
Public Class Methods
new(response)
click to toggle source
# File lib/xdelivery/api/response/base.rb, line 7 def initialize(response) self.response = response self.data = JSON.parse(response.body) end
Public Instance Methods
auth?()
click to toggle source
# File lib/xdelivery/api/response/base.rb, line 12 def auth? response.code == 200 end
status?()
click to toggle source
# File lib/xdelivery/api/response/base.rb, line 16 def status? data['status'] == true end