Class: ProveKeybase::Configuration

Inherits:
Object
  • Object
show all
Extended by:
ActiveModel::Naming
Includes:
ActiveModel::Conversion, 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.



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_urlsObject

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_colorObject

Returns the value of attribute brand_color.



20
21
22
# File 'lib/prove_keybase/configuration.rb', line 20

def brand_color
  @brand_color
end

#contactObject

Returns the value of attribute contact.



20
21
22
# File 'lib/prove_keybase/configuration.rb', line 20

def contact
  @contact
end

#default_keybase_avatar_urlObject

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

#descriptionObject

Returns the value of attribute description.



20
21
22
# File 'lib/prove_keybase/configuration.rb', line 20

def description
  @description
end

#display_nameObject

Returns the value of attribute display_name.



20
21
22
# File 'lib/prove_keybase/configuration.rb', line 20

def display_name
  @display_name
end

#domainObject

Returns the value of attribute domain.



20
21
22
# File 'lib/prove_keybase/configuration.rb', line 20

def domain
  @domain
end

#job_queueObject

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_urlObject

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_redirectionObject

Returns the value of attribute login_redirection.



20
21
22
# File 'lib/prove_keybase/configuration.rb', line 20

def 
  @login_redirection
end

#logo_svg_blackObject

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_fullObject

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_urlObject

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_lengthObject

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_lengthObject

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_reObject

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_urlsObject



34
35
36
# File 'lib/prove_keybase/configuration.rb', line 34

def domain_for_urls
  @_domain_for_urls || @domain
end

#persisted?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/prove_keybase/configuration.rb', line 16

def persisted?
  false
end