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-1.5.0 lib/moneta/api/responses/key_value_response.rb
moneta-api-1.4.0 lib/moneta/api/responses/key_value_response.rb
moneta-api-1.3.0 lib/moneta/api/responses/key_value_response.rb
moneta-api-1.2.1 lib/moneta/api/responses/key_value_response.rb
moneta-api-1.2.0 lib/moneta/api/responses/key_value_response.rb