Class: LlmCostTracker::PriceSync::Fetcher::Response
- Inherits:
-
Data
- Object
- Data
- LlmCostTracker::PriceSync::Fetcher::Response
- Defined in:
- lib/llm_cost_tracker/price_sync/fetcher.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#etag ⇒ Object
readonly
Returns the value of attribute etag.
-
#fetched_at ⇒ Object
readonly
Returns the value of attribute fetched_at.
-
#last_modified ⇒ Object
readonly
Returns the value of attribute last_modified.
-
#not_modified ⇒ Object
readonly
Returns the value of attribute not_modified.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body
11 12 13 |
# File 'lib/llm_cost_tracker/price_sync/fetcher.rb', line 11 def body @body end |
#etag ⇒ Object (readonly)
Returns the value of attribute etag
11 12 13 |
# File 'lib/llm_cost_tracker/price_sync/fetcher.rb', line 11 def etag @etag end |
#fetched_at ⇒ Object (readonly)
Returns the value of attribute fetched_at
11 12 13 |
# File 'lib/llm_cost_tracker/price_sync/fetcher.rb', line 11 def fetched_at @fetched_at end |
#last_modified ⇒ Object (readonly)
Returns the value of attribute last_modified
11 12 13 |
# File 'lib/llm_cost_tracker/price_sync/fetcher.rb', line 11 def last_modified @last_modified end |
#not_modified ⇒ Object (readonly)
Returns the value of attribute not_modified
11 12 13 |
# File 'lib/llm_cost_tracker/price_sync/fetcher.rb', line 11 def not_modified @not_modified end |
Instance Method Details
#source_version ⇒ Object
12 13 14 |
# File 'lib/llm_cost_tracker/price_sync/fetcher.rb', line 12 def source_version etag || last_modified || Digest::SHA256.hexdigest(body.to_s) end |