Class: Tama::Agentic::Author
- Inherits:
-
Data
- Object
- Data
- Tama::Agentic::Author
- Defined in:
- lib/tama/agentic/author.rb
Instance Attribute Summary collapse
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(identifier:, source:, klass: "actor") ⇒ Author
constructor
A new instance of Author.
- #to_h ⇒ Object
Constructor Details
#initialize(identifier:, source:, klass: "actor") ⇒ Author
Returns a new instance of Author.
6 7 8 9 10 11 |
# File 'lib/tama/agentic/author.rb', line 6 def initialize(identifier:, source:, klass: "actor") Params.require_string!({"identifier" => identifier}, "identifier") Params.require_string!({"source" => source}, "source") Params.require_string!({"class" => klass}, "class") super end |
Instance Attribute Details
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier
5 6 7 |
# File 'lib/tama/agentic/author.rb', line 5 def identifier @identifier end |
#klass ⇒ Object (readonly)
Returns the value of attribute klass
5 6 7 |
# File 'lib/tama/agentic/author.rb', line 5 def klass @klass end |
#source ⇒ Object (readonly)
Returns the value of attribute source
5 6 7 |
# File 'lib/tama/agentic/author.rb', line 5 def source @source end |
Class Method Details
Instance Method Details
#to_h ⇒ Object
18 19 20 |
# File 'lib/tama/agentic/author.rb', line 18 def to_h {"identifier" => identifier, "source" => source, "class" => klass} end |