Class: Thanos::TextObject

Inherits:
Object
  • Object
show all
Defined in:
lib/thanos/resources/text_object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#languageObject (readonly)

Returns the value of attribute language.



3
4
5
# File 'lib/thanos/resources/text_object.rb', line 3

def language
  @language
end

#textObject (readonly)

Returns the value of attribute text.



3
4
5
# File 'lib/thanos/resources/text_object.rb', line 3

def text
  @text
end

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/thanos/resources/text_object.rb', line 3

def type
  @type
end