Sha256: d805bf8eb52f6575a13755bb021d396c6508d3daebba798fbdedcb1ad0fe9b37

Contents?: true

Size: 442 Bytes

Versions: 3

Compression:

Stored size: 442 Bytes

Contents

class RestModel
  module Serialization
    class Enumerable
      def self.serialize(value, options = {})
        fail SerializationError, "value '#{value}' is not an enumerable" unless value.kind_of?(::Enumerable)

        value
      end

      def self.desserialize(value, options = {})
        fail SerializationError, "value '#{value}' is not an enumerable" unless value.kind_of?(::Enumerable)

        value
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rest_model-0.3.1 lib/rest_model/serialization/enumerable.rb
rest_model-0.3.0 lib/rest_model/serialization/enumerable.rb
rest_model-0.2.3 lib/rest_model/serialization/enumerable.rb