Module: GoImport::ModelHasTags
- Included in:
- Deal, Organization, Person
- Defined in:
- lib/go_import/model_helpers.rb
Instance Attribute Summary collapse
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
Instance Method Summary collapse
Instance Attribute Details
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
74 75 76 |
# File 'lib/go_import/model_helpers.rb', line 74 def end |
Instance Method Details
#set_tag(str) ⇒ Object
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/go_import/model_helpers.rb', line 78 def set_tag(str) if str.nil? return end if !str.is_a?(String) return end if str.length == 0 return end = [] if == nil if ! .any? {|tag| tag.value == str } .push(Tag.new(str)) end end |