Sha256: ae608ffc0cd1552c1a9b175b9c4fe7c4cb9caf33e24b1d3465a94e881bb00090

Contents?: true

Size: 332 Bytes

Versions: 2

Compression:

Stored size: 332 Bytes

Contents

require "is_ok/version"

module IsOK
  class IsResponse
    attr_reader :data

    def initialize(data)
      @data = data
    end
  end

  class IsOK < IsResponse ; end

  class IsError < IsResponse ; end

  class << self
    def ok(data)
      IsOK.new(data)
    end

    def error(data)
      IsError.new(data)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
is_ok-1.1.1 lib/is_ok.rb
is_ok-1.1.0 lib/is_ok.rb