Class: Harkness::TextObject

Inherits:
Shale::Mapper
  • Object
show all
Defined in:
lib/harkness/models/text_object.rb

Overview

A text object.

Instance Attribute Summary collapse

Instance Attribute Details

#languageString (readonly)

Returns the IETF language tag denoting the language the text object is written in.

Returns:

  • (String)

    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

#textString (readonly)

Returns the text.

Returns:

  • (String)

    the text.



14
# File 'lib/harkness/models/text_object.rb', line 14

attribute :text, Shale::Type::String

#typeString (readonly)

Returns the canonical type of the text object (e.g. solicit text, preview text, etc.).

Returns:

  • (String)

    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