Sha256: 10e886f398e86022070d1fcc71b673da233586e9350904e70ccac36e87f830a3
Contents?: true
Size: 423 Bytes
Versions: 1
Compression:
Stored size: 423 Bytes
Contents
module Nuncium module Responses class Status attr_accessor :code, :message def initialize(response) status = response["#{namespace}Status"] @code = status["#{namespace}StatusCode"] @message = status["#{namespace}StatusMessage"] end private def namespace raise NotImplementedError, "#{self.class} must implement #namespace!" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nuncium-0.13.0 | lib/nuncium/responses/status.rb |