Skip to content

Adds multiple value property

Choose a tag to compare

@AlexanderShvaykin AlexanderShvaykin released this 25 Sep 07:10
· 9 commits to master since this release

There are cases when several values can be specified for a custom field, for example, several mobile or several emails. Adds support for this case.

class MyContact < Amorail::Contact
  amo_property :teachbase_id
  amo_property :phone, enum: 'MOB', multiple: true
end

contact.phone #=> ["123", "456"]