json_builder 1.0.2 → 1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/json_builder/jsonbase.rb +1 -1
- data/lib/test.rb +16 -3
- metadata +2 -3
data/lib/test.rb
CHANGED
@@ -17,6 +17,19 @@ string = @json.user do
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
-
|
21
|
-
|
22
|
-
|
20
|
+
puts string
|
21
|
+
|
22
|
+
@json2 = JsonBuilder::JsonMarkup.new
|
23
|
+
@json2.id 1
|
24
|
+
@json2.name "Client End"
|
25
|
+
@json2.slug "client-end"
|
26
|
+
@json2.subdomain "clientend"
|
27
|
+
@json2.hosted_domain "127.0.0.1"
|
28
|
+
@json2.clients_count 15
|
29
|
+
@json2.total_file_size 13123123
|
30
|
+
@json2.last_billed_on Time.now.getutc.iso8601
|
31
|
+
@json2.logo_url "http://google.com/logo.gif"
|
32
|
+
@json2.created_at Time.now.getutc.iso8601
|
33
|
+
@json2.updated_at Time.now.getutc.iso8601
|
34
|
+
|
35
|
+
puts @json2.target!
|