Sha256: 8e2ae03fa0740b78090c51c8d223e804511efc52c9c43da6cc6ba94dcad15db2

Contents?: true

Size: 251 Bytes

Versions: 28

Compression:

Stored size: 251 Bytes

Contents

$:.push 'examples'; require 'helper'

class Customer < RestModel
  property :login
  property :name
end

@root = Customer.new(login: 'jackiechan2010')
inspect_rest_model(@root)
puts "root.to_source without nil: #{@root.to_source(without_nil: true)}"

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
rest_model-0.1.9 examples/to_source/without_nil.rb
rest_model-0.1.8 examples/to_source/without_nil.rb
rest_model-0.1.7 examples/to_source/without_nil.rb
rest_model-0.1.6 examples/to_source/without_nil.rb
rest_model-0.1.5 examples/to_source/without_nil.rb
rest_model-0.1.4 examples/to_source/without_nil.rb
rest_model-0.1.3 examples/to_source/without_nil.rb
rest_model-0.1.2 examples/to_source/without_nil.rb