Module: AnkiRecord::NoteFieldAttributes

Included in:
NoteField
Defined in:
lib/anki_record/note_field/note_field_attributes.rb

Overview

Module with NoteField class’s attribute readers, writers, and accessors.

Instance Attribute Summary collapse

Instance Attribute Details

#descriptionObject

The field’s description



33
34
35
# File 'lib/anki_record/note_field/note_field_attributes.rb', line 33

def description
  @description
end

#font_sizeObject

The field’s font size used when editing



29
30
31
# File 'lib/anki_record/note_field/note_field_attributes.rb', line 29

def font_size
  @font_size
end

#font_styleObject

The field’s font style used when editing



25
26
27
# File 'lib/anki_record/note_field/note_field_attributes.rb', line 25

def font_style
  @font_style
end

#nameObject

The field’s name



13
14
15
# File 'lib/anki_record/note_field/note_field_attributes.rb', line 13

def name
  @name
end

#note_typeObject (readonly)

The field’s note type



9
10
11
# File 'lib/anki_record/note_field/note_field_attributes.rb', line 9

def note_type
  @note_type
end

#ordinal_numberObject (readonly)

0 for the first field of the note type, 1 for the second, etc



37
38
39
# File 'lib/anki_record/note_field/note_field_attributes.rb', line 37

def ordinal_number
  @ordinal_number
end

#right_to_leftObject

A boolean that indicates if the field is right to left



21
22
23
# File 'lib/anki_record/note_field/note_field_attributes.rb', line 21

def right_to_left
  @right_to_left
end

#stickyObject

A boolean that indicates if the field is sticky



17
18
19
# File 'lib/anki_record/note_field/note_field_attributes.rb', line 17

def sticky
  @sticky
end