Class: ProveKeybase::Configuration

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Serialization
Defined in:
lib/prove_keybase/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



20
21
22
23
24
25
26
# File 'lib/prove_keybase/configuration.rb', line 20

def initialize
  # defaults
  @job_queue = :default
  @login_redirection = :root_path
  @default_keybase_avatar_url = 'https://keybase.io/images/icons/[email protected]'
  @keybase_base_url = ENV.fetch('KEYBASE_BASE_URL') { 'https://keybase.io' }
end

Instance Attribute Details

#_domain_for_urlsObject

Returns the value of attribute _domain_for_urls.



14
15
16
# File 'lib/prove_keybase/configuration.rb', line 14

def _domain_for_urls
  @_domain_for_urls
end

#brand_colorObject

Returns the value of attribute brand_color.



14
15
16
# File 'lib/prove_keybase/configuration.rb', line 14

def brand_color
  @brand_color
end

#contactObject

Returns the value of attribute contact.



14
15
16
# File 'lib/prove_keybase/configuration.rb', line 14

def contact
  @contact
end

#default_keybase_avatar_urlObject

Returns the value of attribute default_keybase_avatar_url.



14
15
16
# File 'lib/prove_keybase/configuration.rb', line 14

def default_keybase_avatar_url
  @default_keybase_avatar_url
end

#descriptionObject

Returns the value of attribute description.



14
15
16
# File 'lib/prove_keybase/configuration.rb', line 14

def description
  @description
end

#display_nameObject

Returns the value of attribute display_name.



14
15
16
# File 'lib/prove_keybase/configuration.rb', line 14

def display_name
  @display_name
end

#domainObject

Returns the value of attribute domain.



14
15
16
# File 'lib/prove_keybase/configuration.rb', line 14

def domain
  @domain
end

#job_queueObject

Returns the value of attribute job_queue.



14
15
16
# File 'lib/prove_keybase/configuration.rb', line 14

def job_queue
  @job_queue
end

#keybase_base_urlObject

Returns the value of attribute keybase_base_url.



14
15
16
# File 'lib/prove_keybase/configuration.rb', line 14

def keybase_base_url
  @keybase_base_url
end

#login_redirectionObject

Returns the value of attribute login_redirection.



14
15
16
# File 'lib/prove_keybase/configuration.rb', line 14

def 
  @login_redirection
end

#logo_svg_blackObject

Returns the value of attribute logo_svg_black.



14
15
16
# File 'lib/prove_keybase/configuration.rb', line 14

def logo_svg_black
  @logo_svg_black
end

#logo_svg_fullObject

Returns the value of attribute logo_svg_full.



14
15
16
# File 'lib/prove_keybase/configuration.rb', line 14

def logo_svg_full
  @logo_svg_full
end

#profile_urlObject

Returns the value of attribute profile_url.



14
15
16
# File 'lib/prove_keybase/configuration.rb', line 14

def profile_url
  @profile_url
end

#user_max_lengthObject

Returns the value of attribute user_max_length.



14
15
16
# File 'lib/prove_keybase/configuration.rb', line 14

def user_max_length
  @user_max_length
end

#user_min_lengthObject

Returns the value of attribute user_min_length.



14
15
16
# File 'lib/prove_keybase/configuration.rb', line 14

def user_min_length
  @user_min_length
end

#user_reObject

Returns the value of attribute user_re.



14
15
16
# File 'lib/prove_keybase/configuration.rb', line 14

def user_re
  @user_re
end

Instance Method Details

#domain_for_urlsObject



28
29
30
# File 'lib/prove_keybase/configuration.rb', line 28

def domain_for_urls
  @_domain_for_urls || @domain
end