Class: Firecrawl::Models::AgentSnapshotResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/firecrawl/models/agent_snapshot_response.rb

Overview

Snapshot response for an agent task.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#errorObject (readonly)

Returns the value of attribute error.



7
8
9
# File 'lib/firecrawl/models/agent_snapshot_response.rb', line 7

def error
  @error
end

#idObject (readonly)

Returns the value of attribute id.



7
8
9
# File 'lib/firecrawl/models/agent_snapshot_response.rb', line 7

def id
  @id
end

#snapshotObject (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_idObject (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

#successObject (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_sObject



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