hhba/mapa76-core

View on GitHub
lib/mapa76/core/model/text_line.rb

Summary

Maintainability
A
0 mins
Test Coverage
class TextLine
  include Mongoid::Document

  field :_id,         type: Integer
  field :text,        type: String
  field :left,        type: Integer
  field :top,         type: Integer
  field :width,       type: Integer
  field :fontspec_id, type: String

  # Text and location attributes of the processed text
  field :processed_text, type: String
  field :from_pos, type: Integer
  field :to_pos,   type: Integer

  embedded_in :page

  SEPARATOR = "\n"
end