Class: Firecrawl::Models::AgentSnapshotResponse
- Inherits:
-
Object
- Object
- Firecrawl::Models::AgentSnapshotResponse
- Defined in:
- lib/firecrawl/models/agent_snapshot_response.rb
Overview
Snapshot response for an agent task.
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#snapshot ⇒ Object
readonly
Returns the value of attribute snapshot.
-
#snapshot_id ⇒ Object
readonly
Returns the value of attribute snapshot_id.
-
#success ⇒ Object
readonly
Returns the value of attribute success.
Instance Method Summary collapse
-
#initialize(raw) ⇒ AgentSnapshotResponse
constructor
A new instance of AgentSnapshotResponse.
- #to_s ⇒ Object
Constructor Details
#initialize(raw) ⇒ AgentSnapshotResponse
Returns a new instance of AgentSnapshotResponse.
9 10 11 12 13 14 15 |
# File 'lib/firecrawl/models/agent_snapshot_response.rb', line 9 def initialize(raw) @success = raw["success"] @id = raw["id"] @snapshot_id = raw["snapshotId"] @snapshot = raw["snapshot"] @error = raw["error"] end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
7 8 9 |
# File 'lib/firecrawl/models/agent_snapshot_response.rb', line 7 def error @error end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
7 8 9 |
# File 'lib/firecrawl/models/agent_snapshot_response.rb', line 7 def id @id end |
#snapshot ⇒ Object (readonly)
Returns the value of attribute snapshot.
7 8 9 |
# File 'lib/firecrawl/models/agent_snapshot_response.rb', line 7 def snapshot @snapshot end |
#snapshot_id ⇒ Object (readonly)
Returns the value of attribute snapshot_id.
7 8 9 |
# File 'lib/firecrawl/models/agent_snapshot_response.rb', line 7 def snapshot_id @snapshot_id end |
#success ⇒ Object (readonly)
Returns the value of attribute success.
7 8 9 |
# File 'lib/firecrawl/models/agent_snapshot_response.rb', line 7 def success @success end |
Instance Method Details
#to_s ⇒ Object
17 18 19 |
# File 'lib/firecrawl/models/agent_snapshot_response.rb', line 17 def to_s "AgentSnapshotResponse{id=#{id}, snapshot_id=#{snapshot_id}, success=#{success}}" end |