Module: Ollama::Utils::Fetcher::HeaderExtension
- Defined in:
- lib/ollama/utils/fetcher.rb
Instance Attribute Summary collapse
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#ex ⇒ Object
Returns the value of attribute ex.
Class Method Summary collapse
Instance Attribute Details
#content_type ⇒ Object
Returns the value of attribute content_type.
10 11 12 |
# File 'lib/ollama/utils/fetcher.rb', line 10 def content_type @content_type end |
#ex ⇒ Object
Returns the value of attribute ex.
12 13 14 |
# File 'lib/ollama/utils/fetcher.rb', line 12 def ex @ex end |
Class Method Details
.failed ⇒ Object
14 15 16 17 18 |
# File 'lib/ollama/utils/fetcher.rb', line 14 def self.failed object = StringIO.new.extend(self) object.content_type = MIME::Types['text/plain'].first object end |