Skip to content
Kward Search API index

Class: Kward::ProviderCatalog::Definition

Inherits:
Struct
  • Object
show all
Defined in:
lib/kward/model/provider_catalog.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#api_key_envObject

Returns the value of attribute api_key_env

Returns:

  • (Object)

    the current value of api_key_env



6
7
8
# File 'lib/kward/model/provider_catalog.rb', line 6

def api_key_env
  @api_key_env
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



6
7
8
# File 'lib/kward/model/provider_catalog.rb', line 6

def id
  @id
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



6
7
8
# File 'lib/kward/model/provider_catalog.rb', line 6

def name
  @name
end

#oauth_nameObject

Returns the value of attribute oauth_name

Returns:

  • (Object)

    the current value of oauth_name



6
7
8
# File 'lib/kward/model/provider_catalog.rb', line 6

def oauth_name
  @oauth_name
end

#protocolObject

Returns the value of attribute protocol

Returns:

  • (Object)

    the current value of protocol



6
7
8
# File 'lib/kward/model/provider_catalog.rb', line 6

def protocol
  @protocol
end

#requires_setupObject

Returns the value of attribute requires_setup

Returns:

  • (Object)

    the current value of requires_setup



6
7
8
# File 'lib/kward/model/provider_catalog.rb', line 6

def requires_setup
  @requires_setup
end

Instance Method Details

#api_key?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/kward/model/provider_catalog.rb', line 15

def api_key?
  !api_key_env.empty?
end

#oauth?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/kward/model/provider_catalog.rb', line 19

def oauth?
  !oauth_name.nil?
end