Sha256: 7296ee6259c0cf507d4e38b916e6db90c9409fd32293aa9bf680aa4a0496dcb4
Contents?: true
Size: 391 Bytes
Versions: 14
Compression:
Stored size: 391 Bytes
Contents
module Xdelivery module API module Response class Base attr_accessor :response, :data def initialize(response) self.response = response self.data = JSON.parse(response.body) end def auth? response.code == 200 end def status? data['status'] == true end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems