Class: ZeroClick::Sellers::Agentify::MarkdownResult

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_controlObject (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_typeObject (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

#etagObject (readonly)

Returns the value of attribute etag.



57
58
59
# File 'lib/zeroclick/sellers/agentify.rb', line 57

def etag
  @etag
end

#markdownObject (readonly)

Returns the value of attribute markdown.



57
58
59
# File 'lib/zeroclick/sellers/agentify.rb', line 57

def markdown
  @markdown
end