Sha256: fe028abe7ce4d0b281d9104ff79a6175e6db0dc569e38b7c4a76ee41b82c997f
Contents?: true
Size: 497 Bytes
Versions: 1
Compression:
Stored size: 497 Bytes
Contents
require "json" require 'ostruct' module Digicert class Response def initialize(response) @response = response end def parse parse_response || response end private attr_reader :response def parse_response if response.body JSON.parse(response.body, object_class: response_object_klass) end end def response_object_klass Digicert.configuration.response_klass end end class ResponseObject < OpenStruct;end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
digicert-0.1.1 | lib/digicert/response.rb |