Sha256: b7aedf413ae9f17554b91deceab3b5c6feead03fba55becba863dcd934454931

Contents?: true

Size: 309 Bytes

Versions: 7

Compression:

Stored size: 309 Bytes

Contents

module Mautic
  class Contact < Model

    alias_attribute :first_name, :firstname
    alias_attribute :last_name, :lastname
    def self.in(connection)
      Proxy.new(connection, endpoint, default_params: { search: '!is:anonymous' })
    end

    def name
      "#{firstname} #{lastname}"
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mautic-2.1.1 app/models/mautic/contact.rb
mautic-0.1.8 app/models/mautic/contact.rb
mautic-0.1.7 app/models/mautic/contact.rb
mautic-1.0.5 app/models/mautic/contact.rb
mautic-0.1.6 app/models/mautic/contact.rb
mautic-0.1.4 app/models/mautic/contact.rb
mautic-1.0.3 app/models/mautic/contact.rb