Class: Harkness::TextObject
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- Harkness::TextObject
- Defined in:
- lib/harkness/models/text_object.rb
Overview
A text object.
Instance Attribute Summary collapse
-
#language ⇒ String
readonly
The IETF language tag denoting the language the text object is written in.
-
#text ⇒ String
readonly
The text.
-
#type ⇒ String
readonly
The canonical type of the text object (e.g. solicit text, preview text, etc.).
Instance Attribute Details
#language ⇒ String (readonly)
Returns the IETF language tag denoting the language the text object is written in.
11 |
# File 'lib/harkness/models/text_object.rb', line 11 attribute :language, Shale::Type::String |
#text ⇒ String (readonly)
Returns the text.
14 |
# File 'lib/harkness/models/text_object.rb', line 14 attribute :text, Shale::Type::String |
#type ⇒ String (readonly)
Returns the canonical type of the text object (e.g. solicit text, preview text, etc.).
8 |
# File 'lib/harkness/models/text_object.rb', line 8 attribute :type, Shale::Type::String |