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-1.5.0 lib/moneta/api/types/hash_entity.rb
moneta-api-1.4.0 lib/moneta/api/types/hash_entity.rb
moneta-api-1.3.0 lib/moneta/api/types/hash_entity.rb
moneta-api-1.2.1 lib/moneta/api/types/hash_entity.rb
moneta-api-1.2.0 lib/moneta/api/types/hash_entity.rb
moneta-api-1.1.0 lib/moneta/api/types/hash_entity.rb