Class: TRMNL::API::Configuration::Content
- Inherits:
-
Struct
- Object
- Struct
- TRMNL::API::Configuration::Content
- Defined in:
- lib/trmnl/api/configuration/content.rb
Overview
Provides API client configuration content.
Instance Attribute Summary collapse
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
Instance Attribute Details
#content_type ⇒ Object
Returns the value of attribute content_type
7 8 9 |
# File 'lib/trmnl/api/configuration/content.rb', line 7 def content_type @content_type end |
#uri ⇒ Object
Returns the value of attribute uri
7 8 9 |
# File 'lib/trmnl/api/configuration/content.rb', line 7 def uri @uri end |
Instance Method Details
#headers ⇒ Object
8 |
# File 'lib/trmnl/api/configuration/content.rb', line 8 def headers = {"Content-Type" => content_type}.compact |