Class: ProveKeybase::Configuration
- Inherits:
-
Object
- Object
- ProveKeybase::Configuration
- Extended by:
- ActiveModel::Naming
- Includes:
- ActiveModel::Conversion, 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.
- #persisted? ⇒ Boolean
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
26 27 28 29 30 31 32 |
# File 'lib/prove_keybase/configuration.rb', line 26 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.
20 21 22 |
# File 'lib/prove_keybase/configuration.rb', line 20 def _domain_for_urls @_domain_for_urls end |
#brand_color ⇒ Object
Returns the value of attribute brand_color.
20 21 22 |
# File 'lib/prove_keybase/configuration.rb', line 20 def brand_color @brand_color end |
#contact ⇒ Object
Returns the value of attribute contact.
20 21 22 |
# File 'lib/prove_keybase/configuration.rb', line 20 def contact @contact end |
#default_keybase_avatar_url ⇒ Object
Returns the value of attribute default_keybase_avatar_url.
20 21 22 |
# File 'lib/prove_keybase/configuration.rb', line 20 def default_keybase_avatar_url @default_keybase_avatar_url end |
#description ⇒ Object
Returns the value of attribute description.
20 21 22 |
# File 'lib/prove_keybase/configuration.rb', line 20 def description @description end |
#display_name ⇒ Object
Returns the value of attribute display_name.
20 21 22 |
# File 'lib/prove_keybase/configuration.rb', line 20 def display_name @display_name end |
#domain ⇒ Object
Returns the value of attribute domain.
20 21 22 |
# File 'lib/prove_keybase/configuration.rb', line 20 def domain @domain end |
#job_queue ⇒ Object
Returns the value of attribute job_queue.
20 21 22 |
# File 'lib/prove_keybase/configuration.rb', line 20 def job_queue @job_queue end |
#keybase_base_url ⇒ Object
Returns the value of attribute keybase_base_url.
20 21 22 |
# File 'lib/prove_keybase/configuration.rb', line 20 def keybase_base_url @keybase_base_url end |
#login_redirection ⇒ Object
Returns the value of attribute login_redirection.
20 21 22 |
# File 'lib/prove_keybase/configuration.rb', line 20 def login_redirection @login_redirection end |
#logo_svg_black ⇒ Object
Returns the value of attribute logo_svg_black.
20 21 22 |
# File 'lib/prove_keybase/configuration.rb', line 20 def logo_svg_black @logo_svg_black end |
#logo_svg_full ⇒ Object
Returns the value of attribute logo_svg_full.
20 21 22 |
# File 'lib/prove_keybase/configuration.rb', line 20 def logo_svg_full @logo_svg_full end |
#profile_url ⇒ Object
Returns the value of attribute profile_url.
20 21 22 |
# File 'lib/prove_keybase/configuration.rb', line 20 def profile_url @profile_url end |
#user_max_length ⇒ Object
Returns the value of attribute user_max_length.
20 21 22 |
# File 'lib/prove_keybase/configuration.rb', line 20 def user_max_length @user_max_length end |
#user_min_length ⇒ Object
Returns the value of attribute user_min_length.
20 21 22 |
# File 'lib/prove_keybase/configuration.rb', line 20 def user_min_length @user_min_length end |
#user_re ⇒ Object
Returns the value of attribute user_re.
20 21 22 |
# File 'lib/prove_keybase/configuration.rb', line 20 def user_re @user_re end |
Instance Method Details
#domain_for_urls ⇒ Object
34 35 36 |
# File 'lib/prove_keybase/configuration.rb', line 34 def domain_for_urls @_domain_for_urls || @domain end |
#persisted? ⇒ Boolean
16 17 18 |
# File 'lib/prove_keybase/configuration.rb', line 16 def persisted? false end |