@@ -98,8 +98,8 @@ def list_invalid_properties
98
98
invalid_properties . push ( "invalid value for 'sender', the character length must be smaller than or equal to 11." )
99
99
end
100
100
101
- if !@scheduled_at . nil? && @scheduled_at !~ Regexp . new ( /^([1-9]\\ d{3}-\\ d{2}-\\ d{2} [0-2]\\ d:[0-5]\\ d:[0-5]\ \ d)?$/ )
102
- invalid_properties . push ( "invalid value for 'scheduled_at', must conform to the pattern /^([1-9]\\ d{3}-\\ d{2}-\\ d{2} [0-2]\\ d:[0-5]\\ d:[0-5]\ \ d)?$/." )
101
+ if !@scheduled_at . nil? && @scheduled_at !~ Regexp . new ( /^([1-9]\d {3}-\d {2}-\d {2} [0-2]\d :[0-5]\d :[0-5]\d )?$/ )
102
+ invalid_properties . push ( "invalid value for 'scheduled_at', must conform to the pattern /^([1-9]\d {3}-\d {2}-\d {2} [0-2]\d :[0-5]\d :[0-5]\d )?$/." )
103
103
end
104
104
105
105
return invalid_properties
@@ -111,7 +111,7 @@ def valid?
111
111
return false if @name . nil?
112
112
return false if @sender . nil?
113
113
return false if @sender . to_s . length > 11
114
- return false if !@scheduled_at . nil? && @scheduled_at !~ Regexp . new ( /^([1-9]\\ d{3}-\\ d{2}-\\ d{2} [0-2]\\ d:[0-5]\\ d:[0-5]\ \ d)?$/ )
114
+ return false if !@scheduled_at . nil? && @scheduled_at !~ Regexp . new ( /^([1-9]\d {3}-\d {2}-\d {2} [0-2]\d :[0-5]\d :[0-5]\d )?$/ )
115
115
return true
116
116
end
117
117
@@ -133,8 +133,8 @@ def sender=(sender)
133
133
# @param [Object] scheduled_at Value to be assigned
134
134
def scheduled_at = ( scheduled_at )
135
135
136
- if !scheduled_at . nil? && scheduled_at !~ Regexp . new ( /^([1-9]\\ d{3}-\\ d{2}-\\ d{2} [0-2]\\ d:[0-5]\\ d:[0-5]\ \ d)?$/ )
137
- fail ArgumentError , "invalid value for 'scheduled_at', must conform to the pattern /^([1-9]\\ d{3}-\\ d{2}-\\ d{2} [0-2]\\ d:[0-5]\\ d:[0-5]\ \ d)?$/."
136
+ if !scheduled_at . nil? && scheduled_at !~ Regexp . new ( /^([1-9]\d {3}-\d {2}-\d {2} [0-2]\d :[0-5]\d :[0-5]\d )?$/ )
137
+ fail ArgumentError , "invalid value for 'scheduled_at', must conform to the pattern /^([1-9]\d {3}-\d {2}-\d {2} [0-2]\d :[0-5]\d :[0-5]\d )?$/."
138
138
end
139
139
140
140
@scheduled_at = scheduled_at
0 commit comments