Class: ConnectWise::Crm
- Inherits:
-
Object
- Object
- ConnectWise::Crm
- Defined in:
- lib/connectwise-ruby-sdk/models/crm.rb
Instance Attribute Summary collapse
-
#_info ⇒ Object
Metadata of the entity.
-
#account_manager_role ⇒ Object
Returns the value of attribute account_manager_role.
-
#company_id_generation_flag ⇒ Object
Returns the value of attribute company_id_generation_flag.
-
#company_list_count ⇒ Object
Returns the value of attribute company_list_count.
-
#default_year ⇒ Object
Returns the value of attribute default_year.
-
#exclude_spaces_flag ⇒ Object
Returns the value of attribute exclude_spaces_flag.
-
#field10_caption ⇒ Object
Returns the value of attribute field10_caption.
-
#field1_caption ⇒ Object
Returns the value of attribute field1_caption.
-
#field2_caption ⇒ Object
Returns the value of attribute field2_caption.
-
#field3_caption ⇒ Object
Returns the value of attribute field3_caption.
-
#field4_caption ⇒ Object
Returns the value of attribute field4_caption.
-
#field5_caption ⇒ Object
Returns the value of attribute field5_caption.
-
#field6_caption ⇒ Object
Returns the value of attribute field6_caption.
-
#field7_caption ⇒ Object
Returns the value of attribute field7_caption.
-
#field8_caption ⇒ Object
Returns the value of attribute field8_caption.
-
#field9_caption ⇒ Object
Returns the value of attribute field9_caption.
-
#id ⇒ Object
Returns the value of attribute id.
-
#lock_probability_flag ⇒ Object
Returns the value of attribute lock_probability_flag.
-
#other1_caption ⇒ Object
Returns the value of attribute other1_caption.
-
#other2_caption ⇒ Object
Returns the value of attribute other2_caption.
-
#primary_rep_caption ⇒ Object
Returns the value of attribute primary_rep_caption.
-
#sales_rep_role ⇒ Object
Returns the value of attribute sales_rep_role.
-
#secondary_rep_caption ⇒ Object
Returns the value of attribute secondary_rep_caption.
-
#technical_contact_role ⇒ Object
Returns the value of attribute technical_contact_role.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ Crm
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ Crm
Initializes the object
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 119 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'id') self.id = attributes[:'id'] end if attributes.has_key?(:'companyListCount') self.company_list_count = attributes[:'companyListCount'] end if attributes.has_key?(:'lockProbabilityFlag') self.lock_probability_flag = attributes[:'lockProbabilityFlag'] end if attributes.has_key?(:'accountManagerRole') self.account_manager_role = attributes[:'accountManagerRole'] end if attributes.has_key?(:'technicalContactRole') self.technical_contact_role = attributes[:'technicalContactRole'] end if attributes.has_key?(:'salesRepRole') self.sales_rep_role = attributes[:'salesRepRole'] end if attributes.has_key?(:'companyIdGenerationFlag') self.company_id_generation_flag = attributes[:'companyIdGenerationFlag'] end if attributes.has_key?(:'excludeSpacesFlag') self.exclude_spaces_flag = attributes[:'excludeSpacesFlag'] end if attributes.has_key?(:'field1Caption') self.field1_caption = attributes[:'field1Caption'] end if attributes.has_key?(:'field2Caption') self.field2_caption = attributes[:'field2Caption'] end if attributes.has_key?(:'field3Caption') self.field3_caption = attributes[:'field3Caption'] end if attributes.has_key?(:'field4Caption') self.field4_caption = attributes[:'field4Caption'] end if attributes.has_key?(:'field5Caption') self.field5_caption = attributes[:'field5Caption'] end if attributes.has_key?(:'field6Caption') self.field6_caption = attributes[:'field6Caption'] end if attributes.has_key?(:'field7Caption') self.field7_caption = attributes[:'field7Caption'] end if attributes.has_key?(:'field8Caption') self.field8_caption = attributes[:'field8Caption'] end if attributes.has_key?(:'field9Caption') self.field9_caption = attributes[:'field9Caption'] end if attributes.has_key?(:'field10Caption') self.field10_caption = attributes[:'field10Caption'] end if attributes.has_key?(:'primaryRepCaption') self.primary_rep_caption = attributes[:'primaryRepCaption'] end if attributes.has_key?(:'secondaryRepCaption') self.secondary_rep_caption = attributes[:'secondaryRepCaption'] end if attributes.has_key?(:'other1Caption') self.other1_caption = attributes[:'other1Caption'] end if attributes.has_key?(:'other2Caption') self.other2_caption = attributes[:'other2Caption'] end if attributes.has_key?(:'defaultYear') self.default_year = attributes[:'defaultYear'] end if attributes.has_key?(:'_info') self._info = attributes[:'_info'] end end |
Instance Attribute Details
#_info ⇒ Object
Metadata of the entity
54 55 56 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 54 def _info @_info end |
#account_manager_role ⇒ Object
Returns the value of attribute account_manager_role.
13 14 15 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 13 def account_manager_role @account_manager_role end |
#company_id_generation_flag ⇒ Object
Returns the value of attribute company_id_generation_flag.
19 20 21 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 19 def company_id_generation_flag @company_id_generation_flag end |
#company_list_count ⇒ Object
Returns the value of attribute company_list_count.
9 10 11 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 9 def company_list_count @company_list_count end |
#default_year ⇒ Object
Returns the value of attribute default_year.
51 52 53 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 51 def default_year @default_year end |
#exclude_spaces_flag ⇒ Object
Returns the value of attribute exclude_spaces_flag.
21 22 23 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 21 def exclude_spaces_flag @exclude_spaces_flag end |
#field10_caption ⇒ Object
Returns the value of attribute field10_caption.
41 42 43 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 41 def field10_caption @field10_caption end |
#field1_caption ⇒ Object
Returns the value of attribute field1_caption.
23 24 25 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 23 def field1_caption @field1_caption end |
#field2_caption ⇒ Object
Returns the value of attribute field2_caption.
25 26 27 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 25 def field2_caption @field2_caption end |
#field3_caption ⇒ Object
Returns the value of attribute field3_caption.
27 28 29 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 27 def field3_caption @field3_caption end |
#field4_caption ⇒ Object
Returns the value of attribute field4_caption.
29 30 31 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 29 def field4_caption @field4_caption end |
#field5_caption ⇒ Object
Returns the value of attribute field5_caption.
31 32 33 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 31 def field5_caption @field5_caption end |
#field6_caption ⇒ Object
Returns the value of attribute field6_caption.
33 34 35 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 33 def field6_caption @field6_caption end |
#field7_caption ⇒ Object
Returns the value of attribute field7_caption.
35 36 37 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 35 def field7_caption @field7_caption end |
#field8_caption ⇒ Object
Returns the value of attribute field8_caption.
37 38 39 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 37 def field8_caption @field8_caption end |
#field9_caption ⇒ Object
Returns the value of attribute field9_caption.
39 40 41 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 39 def field9_caption @field9_caption end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 7 def id @id end |
#lock_probability_flag ⇒ Object
Returns the value of attribute lock_probability_flag.
11 12 13 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 11 def lock_probability_flag @lock_probability_flag end |
#other1_caption ⇒ Object
Returns the value of attribute other1_caption.
47 48 49 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 47 def other1_caption @other1_caption end |
#other2_caption ⇒ Object
Returns the value of attribute other2_caption.
49 50 51 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 49 def other2_caption @other2_caption end |
#primary_rep_caption ⇒ Object
Returns the value of attribute primary_rep_caption.
43 44 45 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 43 def primary_rep_caption @primary_rep_caption end |
#sales_rep_role ⇒ Object
Returns the value of attribute sales_rep_role.
17 18 19 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 17 def sales_rep_role @sales_rep_role end |
#secondary_rep_caption ⇒ Object
Returns the value of attribute secondary_rep_caption.
45 46 47 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 45 def secondary_rep_caption @secondary_rep_caption end |
#technical_contact_role ⇒ Object
Returns the value of attribute technical_contact_role.
15 16 17 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 15 def technical_contact_role @technical_contact_role end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 58 def self.attribute_map { :'id' => :'id', :'company_list_count' => :'companyListCount', :'lock_probability_flag' => :'lockProbabilityFlag', :'account_manager_role' => :'accountManagerRole', :'technical_contact_role' => :'technicalContactRole', :'sales_rep_role' => :'salesRepRole', :'company_id_generation_flag' => :'companyIdGenerationFlag', :'exclude_spaces_flag' => :'excludeSpacesFlag', :'field1_caption' => :'field1Caption', :'field2_caption' => :'field2Caption', :'field3_caption' => :'field3Caption', :'field4_caption' => :'field4Caption', :'field5_caption' => :'field5Caption', :'field6_caption' => :'field6Caption', :'field7_caption' => :'field7Caption', :'field8_caption' => :'field8Caption', :'field9_caption' => :'field9Caption', :'field10_caption' => :'field10Caption', :'primary_rep_caption' => :'primaryRepCaption', :'secondary_rep_caption' => :'secondaryRepCaption', :'other1_caption' => :'other1Caption', :'other2_caption' => :'other2Caption', :'default_year' => :'defaultYear', :'_info' => :'_info' } end |
.swagger_types ⇒ Object
Attribute type mapping.
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 88 def self.swagger_types { :'id' => :'Integer', :'company_list_count' => :'Integer', :'lock_probability_flag' => :'BOOLEAN', :'account_manager_role' => :'TeamRoleReference', :'technical_contact_role' => :'TeamRoleReference', :'sales_rep_role' => :'TeamRoleReference', :'company_id_generation_flag' => :'BOOLEAN', :'exclude_spaces_flag' => :'BOOLEAN', :'field1_caption' => :'String', :'field2_caption' => :'String', :'field3_caption' => :'String', :'field4_caption' => :'String', :'field5_caption' => :'String', :'field6_caption' => :'String', :'field7_caption' => :'String', :'field8_caption' => :'String', :'field9_caption' => :'String', :'field10_caption' => :'String', :'primary_rep_caption' => :'String', :'secondary_rep_caption' => :'String', :'other1_caption' => :'String', :'other2_caption' => :'String', :'default_year' => :'BOOLEAN', :'_info' => :'Metadata' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 502 def ==(o) return true if self.equal?(o) self.class == o.class && id == o.id && company_list_count == o.company_list_count && lock_probability_flag == o.lock_probability_flag && account_manager_role == o.account_manager_role && technical_contact_role == o.technical_contact_role && sales_rep_role == o.sales_rep_role && company_id_generation_flag == o.company_id_generation_flag && exclude_spaces_flag == o.exclude_spaces_flag && field1_caption == o.field1_caption && field2_caption == o.field2_caption && field3_caption == o.field3_caption && field4_caption == o.field4_caption && field5_caption == o.field5_caption && field6_caption == o.field6_caption && field7_caption == o.field7_caption && field8_caption == o.field8_caption && field9_caption == o.field9_caption && field10_caption == o.field10_caption && primary_rep_caption == o.primary_rep_caption && secondary_rep_caption == o.secondary_rep_caption && other1_caption == o.other1_caption && other2_caption == o.other2_caption && default_year == o.default_year && _info == o._info end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 567 def _deserialize(type, value) case type.to_sym when :DateTime DateTime.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :BOOLEAN if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model temp_model = ConnectWise.const_get(type).new temp_model.build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
633 634 635 636 637 638 639 640 641 642 643 644 645 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 633 def _to_hash(value) if value.is_a?(Array) value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 546 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(o) ⇒ Boolean
533 534 535 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 533 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
539 540 541 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 539 def hash [id, company_list_count, lock_probability_flag, account_manager_role, technical_contact_role, sales_rep_role, company_id_generation_flag, exclude_spaces_flag, field1_caption, field2_caption, field3_caption, field4_caption, field5_caption, field6_caption, field7_caption, field8_caption, field9_caption, field10_caption, primary_rep_caption, secondary_rep_caption, other1_caption, other2_caption, default_year, _info].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 225 def list_invalid_properties invalid_properties = Array.new if !@company_list_count.nil? && @company_list_count > 99 invalid_properties.push("invalid value for 'company_list_count', must be smaller than or equal to 99.") end if !@company_list_count.nil? && @company_list_count < 0 invalid_properties.push("invalid value for 'company_list_count', must be greater than or equal to 0.") end if @account_manager_role.nil? invalid_properties.push("invalid value for 'account_manager_role', account_manager_role cannot be nil.") end if @technical_contact_role.nil? invalid_properties.push("invalid value for 'technical_contact_role', technical_contact_role cannot be nil.") end if @sales_rep_role.nil? invalid_properties.push("invalid value for 'sales_rep_role', sales_rep_role cannot be nil.") end if !@field1_caption.nil? && @field1_caption.to_s.length > 25 invalid_properties.push("invalid value for 'field1_caption', the character length must be smaller than or equal to 25.") end if !@field2_caption.nil? && @field2_caption.to_s.length > 25 invalid_properties.push("invalid value for 'field2_caption', the character length must be smaller than or equal to 25.") end if !@field3_caption.nil? && @field3_caption.to_s.length > 25 invalid_properties.push("invalid value for 'field3_caption', the character length must be smaller than or equal to 25.") end if !@field4_caption.nil? && @field4_caption.to_s.length > 25 invalid_properties.push("invalid value for 'field4_caption', the character length must be smaller than or equal to 25.") end if !@field5_caption.nil? && @field5_caption.to_s.length > 25 invalid_properties.push("invalid value for 'field5_caption', the character length must be smaller than or equal to 25.") end if !@field6_caption.nil? && @field6_caption.to_s.length > 25 invalid_properties.push("invalid value for 'field6_caption', the character length must be smaller than or equal to 25.") end if !@field7_caption.nil? && @field7_caption.to_s.length > 25 invalid_properties.push("invalid value for 'field7_caption', the character length must be smaller than or equal to 25.") end if !@field8_caption.nil? && @field8_caption.to_s.length > 25 invalid_properties.push("invalid value for 'field8_caption', the character length must be smaller than or equal to 25.") end if !@field9_caption.nil? && @field9_caption.to_s.length > 25 invalid_properties.push("invalid value for 'field9_caption', the character length must be smaller than or equal to 25.") end if !@field10_caption.nil? && @field10_caption.to_s.length > 25 invalid_properties.push("invalid value for 'field10_caption', the character length must be smaller than or equal to 25.") end if !@primary_rep_caption.nil? && @primary_rep_caption.to_s.length > 50 invalid_properties.push("invalid value for 'primary_rep_caption', the character length must be smaller than or equal to 50.") end if !@secondary_rep_caption.nil? && @secondary_rep_caption.to_s.length > 50 invalid_properties.push("invalid value for 'secondary_rep_caption', the character length must be smaller than or equal to 50.") end if !@other1_caption.nil? && @other1_caption.to_s.length > 50 invalid_properties.push("invalid value for 'other1_caption', the character length must be smaller than or equal to 50.") end if !@other2_caption.nil? && @other2_caption.to_s.length > 50 invalid_properties.push("invalid value for 'other2_caption', the character length must be smaller than or equal to 50.") end return invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
613 614 615 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 613 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
619 620 621 622 623 624 625 626 627 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 619 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) next if value.nil? hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
607 608 609 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 607 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 |
# File 'lib/connectwise-ruby-sdk/models/crm.rb', line 308 def valid? return false if !@company_list_count.nil? && @company_list_count > 99 return false if !@company_list_count.nil? && @company_list_count < 0 return false if @account_manager_role.nil? return false if @technical_contact_role.nil? return false if @sales_rep_role.nil? return false if !@field1_caption.nil? && @field1_caption.to_s.length > 25 return false if !@field2_caption.nil? && @field2_caption.to_s.length > 25 return false if !@field3_caption.nil? && @field3_caption.to_s.length > 25 return false if !@field4_caption.nil? && @field4_caption.to_s.length > 25 return false if !@field5_caption.nil? && @field5_caption.to_s.length > 25 return false if !@field6_caption.nil? && @field6_caption.to_s.length > 25 return false if !@field7_caption.nil? && @field7_caption.to_s.length > 25 return false if !@field8_caption.nil? && @field8_caption.to_s.length > 25 return false if !@field9_caption.nil? && @field9_caption.to_s.length > 25 return false if !@field10_caption.nil? && @field10_caption.to_s.length > 25 return false if !@primary_rep_caption.nil? && @primary_rep_caption.to_s.length > 50 return false if !@secondary_rep_caption.nil? && @secondary_rep_caption.to_s.length > 50 return false if !@other1_caption.nil? && @other1_caption.to_s.length > 50 return false if !@other2_caption.nil? && @other2_caption.to_s.length > 50 return true end |