Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
gitlab-com
marketo-tools
Commits
5badbc4b
Commit
5badbc4b
authored
Aug 21, 2017
by
Robert Speicher
Browse files
Merge branch 'add-email-opted-in-fields' into 'master'
Add email opt-in fields See merge request !7
parents
a808f569
42c30bdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/user.rb
View file @
5badbc4b
class
User
include
FullNameSplitter
attr_accessor
:first_name
,
:last_name
,
:email
attr_accessor
:first_name
,
:last_name
,
:email
,
:email_opted_in
,
:email_opted_in_ip
,
:email_opted_in_source
,
:email_opted_in_at
def
initialize
(
params
)
self
.
full_name
=
params
[
'name'
]
self
.
email
=
params
[
'email'
]
self
.
full_name
=
params
[
'name'
]
self
.
email
=
params
[
'email'
]
self
.
email_opted_in
=
params
[
'email_opted_in'
]
self
.
email_opted_in_ip
=
params
[
'email_opted_in_ip'
]
self
.
email_opted_in_source
=
params
[
'email_opted_in_source'
]
self
.
email_opted_in_at
=
params
[
'email_opted_in_at'
]
end
def
to_param
...
...
@@ -14,7 +19,10 @@ class User
firstName:
first_name
,
lastName:
last_name
,
signUpDate:
Date
.
today
,
leadSource:
'GitLab.com'
,
leadSource:
email_opted_in_source
,
optedIn:
email_opted_in
,
optedInIp:
email_opted_in_ip
,
optedInAt:
email_opted_in_at
,
GitLab_com_user__c
:
true
,
GitLab_com_user__c_account
:
true
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment