Class: Gitlab::Email::Message::BuildIosAppGuide
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods included from Routing
includes_helpers, redirect_legacy_paths, url_helpers
#address, #footer_links, #unsubscribe_message
Constructor Details
Returns a new instance of BuildIosAppGuide.
12
13
14
|
# File 'lib/gitlab/email/message/build_ios_app_guide.rb', line 12
def initialize(format: :html)
@format = format
end
|
Instance Attribute Details
Returns the value of attribute format.
10
11
12
|
# File 'lib/gitlab/email/message/build_ios_app_guide.rb', line 10
def format
@format
end
|
Instance Method Details
#body_line1 ⇒ Object
24
25
26
27
28
29
|
# File 'lib/gitlab/email/message/build_ios_app_guide.rb', line 24
def body_line1
s_(
'InProductMarketing|Want to get your iOS app up and running, including publishing all the way to ' \
'TestFlight? Follow our guide to set up GitLab and fastlane to publish iOS apps to the App Store.'
)
end
|
#cta2_link ⇒ Object
43
44
45
|
# File 'lib/gitlab/email/message/build_ios_app_guide.rb', line 43
def cta2_link
action_link(cta2_text, 'https://www.youtube.com/watch?v=325FyJt7ZG8')
end
|
#cta2_text ⇒ Object
39
40
41
|
# File 'lib/gitlab/email/message/build_ios_app_guide.rb', line 39
def cta2_text
s_('InProductMarketing|Watch iOS building in action.')
end
|
#cta_link ⇒ Object
35
36
37
|
# File 'lib/gitlab/email/message/build_ios_app_guide.rb', line 35
def cta_link
action_link(cta_text, 'https://about.gitlab.com/blog/2019/03/06/ios-publishing-with-gitlab-and-fastlane/')
end
|
#cta_text ⇒ Object
31
32
33
|
# File 'lib/gitlab/email/message/build_ios_app_guide.rb', line 31
def cta_text
s_('InProductMarketing|Learn how to build for iOS')
end
|
#logo_path ⇒ Object
47
48
49
|
# File 'lib/gitlab/email/message/build_ios_app_guide.rb', line 47
def logo_path
'mailers/in_product_marketing/create-0.png'
end
|
#subject_line ⇒ Object
16
17
18
|
# File 'lib/gitlab/email/message/build_ios_app_guide.rb', line 16
def subject_line
s_('InProductMarketing|Get set up to build for iOS')
end
|
#title ⇒ Object
20
21
22
|
# File 'lib/gitlab/email/message/build_ios_app_guide.rb', line 20
def title
s_("InProductMarketing|Building for iOS? We've got you covered.")
end
|
#unsubscribe ⇒ Object
51
52
53
|
# File 'lib/gitlab/email/message/build_ios_app_guide.rb', line 51
def unsubscribe
unsubscribe_message
end
|