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.3.1 examples/to_source/without_nil.rb
rest_model-0.3.0 examples/to_source/without_nil.rb
rest_model-0.2.3 examples/to_source/without_nil.rb
rest_model-0.2.1 examples/to_source/without_nil.rb
rest_model-0.2.0 examples/to_source/without_nil.rb
rest_model-0.1.24 examples/to_source/without_nil.rb
rest_model-0.1.23 examples/to_source/without_nil.rb
rest_model-0.1.22 examples/to_source/without_nil.rb
rest_model-0.1.21 examples/to_source/without_nil.rb
rest_model-0.1.20 examples/to_source/without_nil.rb
rest_model-0.1.19 examples/to_source/without_nil.rb
rest_model-0.1.18 examples/to_source/without_nil.rb
rest_model-0.1.17 examples/to_source/without_nil.rb
rest_model-0.1.16 examples/to_source/without_nil.rb
rest_model-0.1.15 examples/to_source/without_nil.rb
rest_model-0.1.14 examples/to_source/without_nil.rb
rest_model-0.1.13 examples/to_source/without_nil.rb
rest_model-0.1.12 examples/to_source/without_nil.rb
rest_model-0.1.11 examples/to_source/without_nil.rb
rest_model-0.1.10 examples/to_source/without_nil.rb