Sha256: f67d4368a3db990b28cdd968a881360905a18464c06633c02190fd3d1571c52c
Contents?: true
Size: 338 Bytes
Versions: 1
Compression:
Stored size: 338 Bytes
Contents
class RestModel class Property module Retriever def from_source(item, resource = nil) value = digg(item) translation.translate_from_source(serializer.serialize(value), resource) end def digg(input) source_path.inject(input) {|buffer, key| buffer = buffer[key]} end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rest_model-0.1.5 | lib/rest_model/key/property/retriever.rb |