Sha256: a9ad61fe31bd1fbbda9959e505bce74114b207dbe180e7c66bc919b493dc517c

Contents?: true

Size: 206 Bytes

Versions: 2

Compression:

Stored size: 206 Bytes

Contents

module Thanos
  class TextObject
    attr_reader :type, :language, :text

    def initialize(data)
      @type = data['type']
      @language = data['language']
      @text = data['text']
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
thanos-0.6.0 lib/thanos/resources/text_object.rb
thanos-0.5.0 lib/thanos/resources/text_object.rb