Sha256: 0021a1fbdb7867b7d1a03674156acb643e7fb06ba8fb4eacbcd727c2f2e897a2
Contents?: true
Size: 278 Bytes
Versions: 28
Compression:
Stored size: 278 Bytes
Contents
$:.push 'examples'; require 'helper' class Item < RestModel property :id, field: :item_id end class Root < RestModel embeds_many :items, start_key: 'detalhe.itens' end @root = Root.from_source!("detalhe" => {"itens" => [{item_id: 2000}]}).first inspect_rest_model(@root)
Version data entries
28 entries across 28 versions & 1 rubygems