Class: Kagi::API::Configuration::Content

Inherits:
Struct
  • Object
show all
Defined in:
lib/kagi/api/configuration/content.rb

Overview

Defines customizable API configuration content.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#content_typeObject

Returns the value of attribute content_type

Returns:

  • (Object)

    the current value of content_type



9
10
11
# File 'lib/kagi/api/configuration/content.rb', line 9

def content_type
  @content_type
end

#tokenObject

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



9
10
11
# File 'lib/kagi/api/configuration/content.rb', line 9

def token
  @token
end

#uriObject

Returns the value of attribute uri

Returns:

  • (Object)

    the current value of uri



9
10
11
# File 'lib/kagi/api/configuration/content.rb', line 9

def uri
  @uri
end

Instance Method Details

#headersObject



12
# File 'lib/kagi/api/configuration/content.rb', line 12

def headers = {"Content-Type" => content_type}.compact