examples/to_source/serializables.rb in rest_model-0.1.6 vs examples/to_source/serializables.rb in rest_model-0.1.7

- old
+ new

@@ -2,23 +2,26 @@ RestModel::Configuration.configure do |c| c.true_value = "X" c.false_value = "" c.date_format = "%Y%m%d" + c.datetime_format = "%a %b %d %H:%M:%S %Y" end class Customer < RestModel property :login - property :age, type: Integer - property :birth, type: Date - property :active, type: Boolean - property :services, type: Enumerable - property :balance, type: Float + property :age, type: Integer + property :birth, type: Date + property :created_at, type: DateTime + property :active, type: Boolean + property :services, type: Enumerable + property :balance, type: Float end @root = Customer.new(login: 'jackiechan2010', age: 22, birth: "1990-07-04", + created_at: DateTime.now, active: true, services: ["Hosting", "Email"], balance: 200.00) inspect_rest_model(@root)