Sha256: 9df55e764e8c4b44560a5ead365443e2788d10a57128d64df24b026ade5e7221
Contents?: true
Size: 404 Bytes
Versions: 2
Compression:
Stored size: 404 Bytes
Contents
require "json" module Veeqo class Response attr_reader :response def initialize(response) @response = response end def parse parse_response_content end private def parse_response_content JSON.parse(response.body || "{}", object_class: ResponseObject) end end class ResponseObject < OpenStruct def successful? true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
veeqo-0.1.1 | lib/veeqo/response.rb |
veeqo-0.1.0 | lib/veeqo/response.rb |