Sha256: b729be7948c637b4b20b8fc504b1574f0043ad18c989804f50d296124debd22a
Contents?: true
Size: 623 Bytes
Versions: 17
Compression:
Stored size: 623 Bytes
Contents
$:.push 'lib'; require 'transcriber' class Customer < Transcriber::Resource property :login property :password property :description, if: proc {password == "abc"} end @root_with_description = Customer.parse({ login: 2000, password: "abc", description: "description"}).first puts "root: #{@root_with_description.inspect}" puts "resource: #{@root_with_description.resource}" @root_without_description = Customer.parse({ login: 2000, password: "abcd", description: "some text II"}).first puts "root: #{@root_without_description.inspect}" puts "resource: #{@root_without_description.resource}"
Version data entries
17 entries across 17 versions & 1 rubygems