Class: Quby::Settings

Inherits:
Object
  • Object
show all
Defined in:
lib/quby/settings.rb

Class Method Summary collapse

Class Method Details

.api_allowed_ip_rangesObject



13
14
15
# File 'lib/quby/settings.rb', line 13

def self.api_allowed_ip_ranges
  @api_allowed_ip_ranges || ["10.0.0.0/8"]
end

.api_allowed_ip_ranges=(value) ⇒ Object



17
18
19
# File 'lib/quby/settings.rb', line 17

def self.api_allowed_ip_ranges=(value)
  @api_allowed_ip_ranges = value
end

.authorize_with_hmacObject

Authorization protocols



62
63
64
65
66
67
68
# File 'lib/quby/settings.rb', line 62

def self.authorize_with_hmac
  if @authorize_with_hmac.nil?
    true
  else
    @authorize_with_hmac
  end
end

.authorize_with_hmac=(value) ⇒ Object



70
71
72
# File 'lib/quby/settings.rb', line 70

def self.authorize_with_hmac=(value)
  @authorize_with_hmac = value
end

.authorize_with_id_from_sessionObject



74
75
76
77
78
79
80
# File 'lib/quby/settings.rb', line 74

def self.authorize_with_id_from_session
  if @authorize_with_id_from_session.nil?
    true
  else
    @authorize_with_id_from_session
  end
end

.authorize_with_id_from_session=(value) ⇒ Object



82
83
84
# File 'lib/quby/settings.rb', line 82

def self.authorize_with_id_from_session=(value)
  @authorize_with_id_from_session = value
end

.enable_leave_page_alertObject



49
50
51
52
53
54
55
# File 'lib/quby/settings.rb', line 49

def self.enable_leave_page_alert
  if @enable_leave_page_alert.nil?
    true
  else
    @enable_leave_page_alert
  end
end

.enable_leave_page_alert=(value) ⇒ Object



57
58
59
# File 'lib/quby/settings.rb', line 57

def self.enable_leave_page_alert=(value)
  @enable_leave_page_alert = value
end

.enforce_questionnaire_key_formatObject



37
38
39
40
41
42
43
# File 'lib/quby/settings.rb', line 37

def self.enforce_questionnaire_key_format
  if @enforce_questionnaire_key_format.nil?
    true
  else
    @enforce_questionnaire_key_format
  end
end

.enforce_questionnaire_key_format=(value) ⇒ Object



45
46
47
# File 'lib/quby/settings.rb', line 45

def self.enforce_questionnaire_key_format=(value)
  @enforce_questionnaire_key_format = value
end

.previous_shared_secretObject



29
30
31
# File 'lib/quby/settings.rb', line 29

def self.previous_shared_secret
  @previous_shared_secret
end

.previous_shared_secret=(value) ⇒ Object



33
34
35
# File 'lib/quby/settings.rb', line 33

def self.previous_shared_secret=(value)
  @previous_shared_secret = value
end

.require_score_schemasObject



5
6
7
# File 'lib/quby/settings.rb', line 5

def self.require_score_schemas
  @require_score_schemas
end

.require_score_schemas=(value) ⇒ Object



9
10
11
# File 'lib/quby/settings.rb', line 9

def self.require_score_schemas=(value)
  @require_score_schemas = value
end

.shared_secretObject



21
22
23
# File 'lib/quby/settings.rb', line 21

def self.shared_secret
  @shared_secret
end

.shared_secret=(value) ⇒ Object



25
26
27
# File 'lib/quby/settings.rb', line 25

def self.shared_secret=(value)
  @shared_secret = value
end