Class: ZeroClick::Sellers::Agentify::MarkdownResult
- Inherits:
-
Object
- Object
- ZeroClick::Sellers::Agentify::MarkdownResult
- Defined in:
- lib/zeroclick/sellers/agentify.rb
Overview
The converted document plus the response headers worth forwarding to the agent — the customer's CDN caches the markdown too.
Instance Attribute Summary collapse
-
#cache_control ⇒ Object
readonly
Returns the value of attribute cache_control.
-
#content_type ⇒ Object
readonly
Returns the value of attribute content_type.
-
#etag ⇒ Object
readonly
Returns the value of attribute etag.
-
#markdown ⇒ Object
readonly
Returns the value of attribute markdown.
Instance Method Summary collapse
-
#initialize(markdown:, cache_control: nil, content_type: nil, etag: nil) ⇒ MarkdownResult
constructor
A new instance of MarkdownResult.
Constructor Details
#initialize(markdown:, cache_control: nil, content_type: nil, etag: nil) ⇒ MarkdownResult
Returns a new instance of MarkdownResult.
59 60 61 62 63 64 65 |
# File 'lib/zeroclick/sellers/agentify.rb', line 59 def initialize(markdown:, cache_control: nil, content_type: nil, etag: nil) @markdown = markdown @cache_control = cache_control @content_type = content_type @etag = etag freeze end |
Instance Attribute Details
#cache_control ⇒ Object (readonly)
Returns the value of attribute cache_control.
57 58 59 |
# File 'lib/zeroclick/sellers/agentify.rb', line 57 def cache_control @cache_control end |
#content_type ⇒ Object (readonly)
Returns the value of attribute content_type.
57 58 59 |
# File 'lib/zeroclick/sellers/agentify.rb', line 57 def content_type @content_type end |
#etag ⇒ Object (readonly)
Returns the value of attribute etag.
57 58 59 |
# File 'lib/zeroclick/sellers/agentify.rb', line 57 def etag @etag end |
#markdown ⇒ Object (readonly)
Returns the value of attribute markdown.
57 58 59 |
# File 'lib/zeroclick/sellers/agentify.rb', line 57 def markdown @markdown end |