Class: Thanos::TextObject
- Inherits:
-
Object
- Object
- Thanos::TextObject
- Defined in:
- lib/thanos/resources/text_object.rb
Instance Attribute Summary collapse
-
#language ⇒ Object
readonly
Returns the value of attribute language.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(data) ⇒ TextObject
constructor
A new instance of TextObject.
Constructor Details
#initialize(data) ⇒ TextObject
Returns a new instance of TextObject.
5 6 7 8 9 |
# File 'lib/thanos/resources/text_object.rb', line 5 def initialize(data) @type = data['type'] @language = data['language'] @text = data['text'] end |
Instance Attribute Details
#language ⇒ Object (readonly)
Returns the value of attribute language.
3 4 5 |
# File 'lib/thanos/resources/text_object.rb', line 3 def language @language end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
3 4 5 |
# File 'lib/thanos/resources/text_object.rb', line 3 def text @text end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/thanos/resources/text_object.rb', line 3 def type @type end |