cupid 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cupid/methods/email.rb +4 -3
- data/lib/cupid/version.rb +1 -1
- metadata +3 -3
data/lib/cupid/methods/email.rb
CHANGED
@@ -42,6 +42,7 @@ module Cupid
|
|
42
42
|
def create_folder(title, *args)
|
43
43
|
options = args.extract_options!
|
44
44
|
options[:title] = CGI.escapeHTML title.to_s
|
45
|
+
options[:description] ||= 'description'
|
45
46
|
|
46
47
|
options[:content_type] ||= 'email'
|
47
48
|
options[:is_active] ||= 'true'
|
@@ -82,9 +83,9 @@ module Cupid
|
|
82
83
|
folder_object = '<ObjectID xsi:nil="true"/>'
|
83
84
|
folder_object += '<Client><ID>' + options[:client_id].to_s + '</ID></Client>' if options[:client_id]
|
84
85
|
folder_object += '<CustomerKey>' + options[:title].to_s + '</CustomerKey>' if options[:title]
|
85
|
-
folder_object += '<Name>' + options[:title].to_s + '</Name>'
|
86
|
-
|
87
|
-
|
86
|
+
folder_object += '<Name>' + options[:title].to_s + '</Name>' +
|
87
|
+
'<Description>' + options[:description].to_s + '</Description>' +
|
88
|
+
'<ContentType>' + options[:content_type].to_s + '</ContentType>' +
|
88
89
|
'<IsActive>' + options[:is_active].to_s + '</IsActive>' +
|
89
90
|
'<IsEditable>' + options[:is_editable].to_s + '</IsEditable>' +
|
90
91
|
'<AllowChildren>' + options[:allow_children].to_s + '</AllowChildren>'
|
data/lib/cupid/version.rb
CHANGED
metadata
CHANGED