Skip to content
This repository was archived by the owner on Jun 29, 2023. It is now read-only.

Commit f8bf405

Browse files
authored
Merge pull request #27 from Typeform/add_is_trial_to_form
Add is_trial to Settings object
2 parents 2685ec7 + 6707be9 commit f8bf405

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: lib/create_api_gem/forms/settings/settings.rb

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
class Settings
22
attr_accessor :redirect_after_submit_url, :show_typeform_branding, :progress_bar,
33
:show_progress_bar, :description, :allow_indexing, :image, :language,
4-
:is_public, :google_analytics, :notifications
4+
:is_public, :is_trial, :google_analytics, :notifications
55

66
def initialize(redirect_after_submit_url: nil, show_typeform_branding: nil, progress_bar: nil,
77
show_progress_bar: nil, description: nil, allow_indexing: nil, image: nil, language: nil,
8-
is_public: nil, google_analytics: nil, notifications: nil)
8+
is_public: nil, is_trial: nil, google_analytics: nil, notifications: nil)
99
@redirect_after_submit_url = redirect_after_submit_url
1010
@show_typeform_branding = show_typeform_branding
1111
@progress_bar = progress_bar
@@ -14,6 +14,7 @@ def initialize(redirect_after_submit_url: nil, show_typeform_branding: nil, prog
1414
@allow_indexing = allow_indexing
1515
@language = language
1616
@is_public = is_public
17+
@is_trial = is_trial
1718
@image = image
1819
@google_analytics = google_analytics
1920
@notifications = notifications
@@ -61,7 +62,7 @@ def same?(actual)
6162

6263
def self.default
6364
Settings.new(show_typeform_branding: true, progress_bar: 'proportion', show_progress_bar: true,
64-
allow_indexing: true, language: 'en', is_public: true)
65+
allow_indexing: true, language: 'en', is_public: true, is_trial: false)
6566
end
6667

6768
def self.full_example(email_block_for_notifications_ref)

0 commit comments

Comments
 (0)