Class: Clerk::Models::Components::AgentTask
- Inherits:
-
Object
- Object
- Clerk::Models::Components::AgentTask
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/agenttask.rb
Overview
Success
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(object:, agent_id:, agent_task_id:, task_id:, url: nil) ⇒ AgentTask
constructor
A new instance of AgentTask.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(object:, agent_id:, agent_task_id:, task_id:, url: nil) ⇒ AgentTask
Returns a new instance of AgentTask.
33 34 35 36 37 38 39 |
# File 'lib/clerk/models/components/agenttask.rb', line 33 def initialize(object:, agent_id:, agent_task_id:, task_id:, url: nil) @object = object @agent_id = agent_id @agent_task_id = agent_task_id @task_id = task_id @url = url end |
Instance Method Details
#==(other) ⇒ Object
42 43 44 45 46 47 48 49 50 |
# File 'lib/clerk/models/components/agenttask.rb', line 42 def ==(other) return false unless other.is_a? self.class return false unless @object == other.object return false unless @agent_id == other.agent_id return false unless @agent_task_id == other.agent_task_id return false unless @task_id == other.task_id return false unless @url == other.url true end |