Class: Mautic::Contact

Inherits:
Model
  • Object
show all
Defined in:
app/models/mautic/contact.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#attributes, #attributes=, #changes, #create, #destroy, endpoint, #initialize, #save, #update

Constructor Details

This class inherits a constructor from Mautic::Model

Class Method Details

.in(connection) ⇒ Object



6
7
8
# File 'app/models/mautic/contact.rb', line 6

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

Instance Method Details

#nameObject



10
11
12
# File 'app/models/mautic/contact.rb', line 10

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