Class: ProveKeybase::Configuration
- Inherits:
-
Object
- Object
- ProveKeybase::Configuration
- Includes:
- ActiveModel::Serialization
- Defined in:
- lib/prove_keybase/configuration.rb
Instance Attribute Summary collapse
-
#_domain_for_urls ⇒ Object
Returns the value of attribute _domain_for_urls.
-
#brand_color ⇒ Object
Returns the value of attribute brand_color.
-
#contact ⇒ Object
Returns the value of attribute contact.
-
#default_keybase_avatar_url ⇒ Object
Returns the value of attribute default_keybase_avatar_url.
-
#description ⇒ Object
Returns the value of attribute description.
-
#display_name ⇒ Object
Returns the value of attribute display_name.
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#job_queue ⇒ Object
Returns the value of attribute job_queue.
-
#keybase_base_url ⇒ Object
Returns the value of attribute keybase_base_url.
-
#login_redirection ⇒ Object
Returns the value of attribute login_redirection.
-
#logo_svg_black ⇒ Object
Returns the value of attribute logo_svg_black.
-
#logo_svg_full ⇒ Object
Returns the value of attribute logo_svg_full.
-
#profile_url ⇒ Object
Returns the value of attribute profile_url.
-
#user_max_length ⇒ Object
Returns the value of attribute user_max_length.
-
#user_min_length ⇒ Object
Returns the value of attribute user_min_length.
-
#user_re ⇒ Object
Returns the value of attribute user_re.
Instance Method Summary collapse
- #domain_for_urls ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_urls ⇒ Object
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_color ⇒ Object
Returns the value of attribute brand_color.
14 15 16 |
# File 'lib/prove_keybase/configuration.rb', line 14 def brand_color @brand_color end |
#contact ⇒ Object
Returns the value of attribute contact.
14 15 16 |
# File 'lib/prove_keybase/configuration.rb', line 14 def contact @contact end |
#default_keybase_avatar_url ⇒ Object
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 |
#description ⇒ Object
Returns the value of attribute description.
14 15 16 |
# File 'lib/prove_keybase/configuration.rb', line 14 def description @description end |
#display_name ⇒ Object
Returns the value of attribute display_name.
14 15 16 |
# File 'lib/prove_keybase/configuration.rb', line 14 def display_name @display_name end |
#domain ⇒ Object
Returns the value of attribute domain.
14 15 16 |
# File 'lib/prove_keybase/configuration.rb', line 14 def domain @domain end |
#job_queue ⇒ Object
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_url ⇒ Object
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_redirection ⇒ Object
Returns the value of attribute login_redirection.
14 15 16 |
# File 'lib/prove_keybase/configuration.rb', line 14 def login_redirection @login_redirection end |
#logo_svg_black ⇒ Object
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_full ⇒ Object
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_url ⇒ Object
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_length ⇒ Object
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_length ⇒ Object
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_re ⇒ Object
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_urls ⇒ Object
28 29 30 |
# File 'lib/prove_keybase/configuration.rb', line 28 def domain_for_urls @_domain_for_urls || @domain end |