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

Version Path
ruby_isds-0.13.0 lib/ruby_isds/responses/status.rb
ruby_isds-0.12.0 lib/ruby_isds/responses/status.rb
ruby_isds-0.11.1 lib/ruby_isds/responses/status.rb
ruby_isds-0.11.0 lib/ruby_isds/responses/status.rb
ruby_isds-0.10.5 lib/ruby_isds/responses/status.rb
ruby_isds-0.10.4 lib/ruby_isds/responses/status.rb
ruby_isds-0.10.3 lib/ruby_isds/responses/status.rb
ruby_isds-0.10.2 lib/ruby_isds/responses/status.rb
ruby_isds-0.10.1 lib/ruby_isds/responses/status.rb
ruby_isds-0.9.1 lib/ruby_isds/responses/status.rb
ruby_isds-0.9.0 lib/ruby_isds/responses/status.rb