Class: Gitlab::Email::Message::BuildIosAppGuide

Inherits:
Object
  • Object
show all
Includes:
InProductMarketing::Helper, Routing
Defined in:
lib/gitlab/email/message/build_ios_app_guide.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Routing

add_helpers, includes_helpers, redirect_legacy_paths, url_helpers

Methods included from InProductMarketing::Helper

#address, #footer_links, #unsubscribe_message

Constructor Details

#initialize(format: :html) ⇒ BuildIosAppGuide

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

#formatObject

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_line1Object


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

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_textObject


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

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_textObject


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_pathObject


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_lineObject


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

#titleObject


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

#unsubscribeObject


51
52
53
# File 'lib/gitlab/email/message/build_ios_app_guide.rb', line 51

def unsubscribe
  unsubscribe_message
end