Sha256: b7da1ce89aac6c2a2536887dd1b3c667bce2bc441e19eeea2005b29a997288ed

Contents?: true

Size: 414 Bytes

Versions: 20

Compression:

Stored size: 414 Bytes

Contents

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

        value
      end

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

        value
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
rest_model-0.2.1 lib/rest_model/serialization/enumerable.rb
rest_model-0.2.0 lib/rest_model/serialization/enumerable.rb
rest_model-0.1.24 lib/rest_model/serialization/enumerable.rb
rest_model-0.1.23 lib/rest_model/serialization/enumerable.rb
rest_model-0.1.22 lib/rest_model/serialization/enumerable.rb
rest_model-0.1.21 lib/rest_model/serialization/enumerable.rb
rest_model-0.1.20 lib/rest_model/serialization/enumerable.rb
rest_model-0.1.19 lib/rest_model/serialization/enumerable.rb
rest_model-0.1.18 lib/rest_model/serialization/enumerable.rb
rest_model-0.1.17 lib/rest_model/serialization/enumerable.rb
rest_model-0.1.16 lib/rest_model/serialization/enumerable.rb
rest_model-0.1.15 lib/rest_model/serialization/enumerable.rb
rest_model-0.1.14 lib/rest_model/serialization/enumerable.rb
rest_model-0.1.13 lib/rest_model/serialization/enumerable.rb
rest_model-0.1.12 lib/rest_model/serialization/enumerable.rb
rest_model-0.1.11 lib/rest_model/serialization/enumerable.rb
rest_model-0.1.10 lib/rest_model/serialization/enumerable.rb
rest_model-0.1.9 lib/rest_model/serialization/enumerable.rb
rest_model-0.1.8 lib/rest_model/serialization/enumerable.rb
rest_model-0.1.7 lib/rest_model/serialization/enumerable.rb