Class: TRMNL::API::Configuration::Content

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

Overview

Provides API client 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



7
8
9
# File 'lib/trmnl/api/configuration/content.rb', line 7

def content_type
  @content_type
end

#uriObject

Returns the value of attribute uri

Returns:

  • (Object)

    the current value of uri



7
8
9
# File 'lib/trmnl/api/configuration/content.rb', line 7

def uri
  @uri
end

Instance Method Details

#headersObject



8
# File 'lib/trmnl/api/configuration/content.rb', line 8

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