Class: J::Term
- Inherits:
-
Struct
- Object
- Struct
- J::Term
- Defined in:
- lib/affadavit/j.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
Returns the value of attribute label.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#val ⇒ Object
Returns the value of attribute val.
Instance Method Summary collapse
Instance Attribute Details
#label ⇒ Object
Returns the value of attribute label
20 21 22 |
# File 'lib/affadavit/j.rb', line 20 def label @label end |
#metadata ⇒ Object
Returns the value of attribute metadata
20 21 22 |
# File 'lib/affadavit/j.rb', line 20 def @metadata end |
#val ⇒ Object
Returns the value of attribute val
20 21 22 |
# File 'lib/affadavit/j.rb', line 20 def val @val end |
Instance Method Details
#__is__J__ ⇒ Object
21 22 23 |
# File 'lib/affadavit/j.rb', line 21 def __is__J__ true end |
#as_json ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/affadavit/j.rb', line 31 def as_json(...) { value: value, label: label, metadata: .as_json(...) } end |