Module: AnkiRecord::CardTemplateAttributes

Included in:
CardTemplate
Defined in:
lib/anki_record/card_template/card_template_attributes.rb

Overview

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

Instance Attribute Summary collapse

Instance Attribute Details

#answer_formatObject

The card template’s answer format



42
43
44
# File 'lib/anki_record/card_template/card_template_attributes.rb', line 42

def answer_format
  @answer_format
end

#browser_font_sizeObject

The card template’s font size used in the browser



17
18
19
# File 'lib/anki_record/card_template/card_template_attributes.rb', line 17

def browser_font_size
  @browser_font_size
end

#browser_font_styleObject

The card template’s font style in the browser



13
14
15
# File 'lib/anki_record/card_template/card_template_attributes.rb', line 13

def browser_font_style
  @browser_font_style
end

#nameObject

The card template’s name



9
10
11
# File 'lib/anki_record/card_template/card_template_attributes.rb', line 9

def name
  @name
end

#note_typeObject (readonly)

The card template’s note type object



63
64
65
# File 'lib/anki_record/card_template/card_template_attributes.rb', line 63

def note_type
  @note_type
end

#ordinal_numberObject (readonly)

0 for the first card template of the note type, 1 for the second, etc



67
68
69
# File 'lib/anki_record/card_template/card_template_attributes.rb', line 67

def ordinal_number
  @ordinal_number
end

#question_formatObject

The card template’s question format



21
22
23
# File 'lib/anki_record/card_template/card_template_attributes.rb', line 21

def question_format
  @question_format
end