Sha256: bfcf7207a139f7a458a526d87b64e1ae621f2755c137f5d04fb90512978679b7

Contents?: true

Size: 349 Bytes

Versions: 25

Compression:

Stored size: 349 Bytes

Contents

module Moneta
  module Api
    module Responses
      class KeyValueResponse
        include Moneta::Api::DataMapper

        property :attribute, read_only: true

        def fill(attributes)
          @attribute = KeyValueSerializer.deserialize(attributes.delete(:attribute))
          super
          self
        end
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

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