Sha256: e06e448968c4809cc4185002422dad0b47aef9e774e4d211b5f38d948dc52761

Contents?: true

Size: 298 Bytes

Versions: 26

Compression:

Stored size: 298 Bytes

Contents

module Moneta
  module Api
    module Types
      class HashEntity
        include Moneta::Api::DataMapper

        def to_hash
          attributes = Moneta::Api::KeyValueSerializer.serialize(self)
          { 'attribute' => attributes } if attributes.any?
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
moneta-api-2.1.0 lib/moneta/api/types/hash_entity.rb
moneta-api-2.0.0 lib/moneta/api/types/hash_entity.rb
moneta-api-2.0.0.rc2 lib/moneta/api/types/hash_entity.rb
moneta-api-2.0.0.rc1 lib/moneta/api/types/hash_entity.rb
moneta-api-1.13.0 lib/moneta/api/types/hash_entity.rb
moneta-api-1.12.8 lib/moneta/api/types/hash_entity.rb
moneta-api-1.12.7 lib/moneta/api/types/hash_entity.rb
moneta-api-1.12.6 lib/moneta/api/types/hash_entity.rb
moneta-api-1.12.5 lib/moneta/api/types/hash_entity.rb
moneta-api-1.12.4 lib/moneta/api/types/hash_entity.rb
moneta-api-1.12.3 lib/moneta/api/types/hash_entity.rb
moneta-api-1.12.2 lib/moneta/api/types/hash_entity.rb
moneta-api-1.12.1 lib/moneta/api/types/hash_entity.rb
moneta-api-1.12.0 lib/moneta/api/types/hash_entity.rb
moneta-api-1.11.0 lib/moneta/api/types/hash_entity.rb
moneta-api-1.10.0 lib/moneta/api/types/hash_entity.rb
moneta-api-1.9.0 lib/moneta/api/types/hash_entity.rb
moneta-api-1.8.0 lib/moneta/api/types/hash_entity.rb
moneta-api-1.7.0 lib/moneta/api/types/hash_entity.rb
moneta-api-1.6.0 lib/moneta/api/types/hash_entity.rb