Class: Mautic::Connection
Instance Method Summary
collapse
Instance Method Details
#authorize ⇒ Object
15
16
17
|
# File 'app/models/mautic/connection.rb', line 15
def authorize
raise NotImplementedError
end
|
#client ⇒ Object
11
12
13
|
# File 'app/models/mautic/connection.rb', line 11
def client
raise NotImplementedError
end
|
#connection ⇒ Object
23
24
25
|
# File 'app/models/mautic/connection.rb', line 23
def connection
raise NotImplementedError
end
|
37
38
39
|
# File 'app/models/mautic/connection.rb', line 37
def contacts
Proxy.new(self, 'contacts', default_params: { search: '!is:anonymous' })
end
|
#get_code(code) ⇒ Object
19
20
21
|
# File 'app/models/mautic/connection.rb', line 19
def get_code(code)
raise NotImplementedError
end
|
#refresh! ⇒ Object
27
28
29
|
# File 'app/models/mautic/connection.rb', line 27
def refresh!
raise NotImplementedError
end
|
#request(type, path, params = {}) ⇒ Object
41
42
43
44
45
|
# File 'app/models/mautic/connection.rb', line 41
def request(type, path, params = {})
@last_request = [type, path, params]
response = raise NotImplementedError
parse_response(response)
end
|