Class: Kno::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_host: "https://api.trykno.app", api_token: "API_AAAAAgDOxdmUqKpE9rw82Jj0Y6DM", cdn_host: "https://trykno.app", site_token: "site_UITYJw8kQJilzVnux5VOPw", sign_in_redirect:) ⇒ Config

Returns a new instance of Config.



30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/kno.rb', line 30

def initialize(
  api_host: "https://api.trykno.app",
  api_token: "API_AAAAAgDOxdmUqKpE9rw82Jj0Y6DM",
  cdn_host: "https://trykno.app",
  site_token: "site_UITYJw8kQJilzVnux5VOPw",
  sign_in_redirect:
)
@api_host = api_host
@api_token = api_token
@cdn_host = cdn_host
@site_token = site_token
@sign_in_redirect = 
end

Instance Attribute Details

#api_hostObject (readonly)

Returns the value of attribute api_host.



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

def api_host
  @api_host
end

#api_tokenObject (readonly)

Returns the value of attribute api_token.



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

def api_token
  @api_token
end

#cdn_hostObject (readonly)

Returns the value of attribute cdn_host.



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

def cdn_host
  @cdn_host
end

#sign_in_redirectObject (readonly)

Returns the value of attribute sign_in_redirect.



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

def 
  @sign_in_redirect
end

#site_tokenObject (readonly)

Returns the value of attribute site_token.



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

def site_token
  @site_token
end