Class: Kampainer::Contact

Inherits:
SchemaObject show all
Defined in:
lib/kampainer/contact.rb

Direct Known Subclasses

TestContact

Defined Under Namespace

Classes: CustomAttribute, CustomAttributes, Key

Instance Method Summary collapse

Methods inherited from SchemaObject

#initialize, #inspect

Constructor Details

This class inherits a constructor from Kampainer::SchemaObject

Instance Method Details

#add_to_groups=(group_ids) ⇒ Object



43
44
45
46
# File 'lib/kampainer/contact.rb', line 43

def add_to_groups=(group_ids)
  group_ids = ArrayOfInt.new(group_ids) unless group_ids.is_a?(SchemaObject)
  @add_to_groups = group_ids
end

#custom_attributes=(custom_attributes) ⇒ Object



38
39
40
41
# File 'lib/kampainer/contact.rb', line 38

def custom_attributes=(custom_attributes)
  custom_attributes = CustomAttributes.new(custom_attributes) if custom_attributes.is_a?(Array)
  @custom_attributes = custom_attributes
end