Sha256: aad9a46118a21c72daa735ca555b80fe29aa13f61a7964aa22ca6fe825b3bef5

Contents?: true

Size: 373 Bytes

Versions: 10

Compression:

Stored size: 373 Bytes

Contents

module Rack
  class API
    module Formatter
      class Base
        attr_accessor :object
        attr_accessor :params

        class AbstractMethodError < StandardError; end

        def initialize(object, params)
          @object, @params = object, params
        end

        def to_format
          raise AbstractMethodError
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rack-api-1.0.1 lib/rack/api/formatter/base.rb
rack-api-1.0.0 lib/rack/api/formatter/base.rb
rack-api-0.3.1 lib/rack/api/formatter/base.rb
rack-api-0.3.0 lib/rack/api/formatter/base.rb
rack-api-0.2.2 lib/rack/api/formatter/base.rb
rack-api-0.2.1 lib/rack/api/formatter/base.rb
rack-api-0.2.0 lib/rack/api/formatter/base.rb
rack-api-0.1.2 lib/rack/api/formatter/base.rb
rack-api-0.1.1 lib/rack/api/formatter/base.rb
rack-api-0.1.0 lib/rack/api/formatter/base.rb