Sha256: 523604ca379103e79704d062622c3f2fee2154e37d85ed1504c8fc02b1293aaa
Contents?: true
Size: 424 Bytes
Versions: 11
Compression:
Stored size: 424 Bytes
Contents
module RubyIsds 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
11 entries across 11 versions & 1 rubygems