Module: AnkiRecord::Anki21DatabaseAttributes

Included in:
Anki21Database
Defined in:
lib/anki_record/anki21_database/anki21_database_attributes.rb

Overview

Module with Anki21Database's attribute readers, writers, and accessors

Instance Attribute Summary collapse

Instance Attribute Details

#anki_package ⇒ Object (readonly)

The database's parent Anki package



21
22
23
# File 'lib/anki_record/anki21_database/anki21_database_attributes.rb', line 21

def anki_package
  @anki_package
end

#collection ⇒ Object (readonly)

The database's collection record



25
26
27
# File 'lib/anki_record/anki21_database/anki21_database_attributes.rb', line 25

def collection
  @collection
end

#database ⇒ Object (readonly)

The database's collection.anki21 SQLite3::Database



29
30
31
# File 'lib/anki_record/anki21_database/anki21_database_attributes.rb', line 29

def database
  @database
end

#deck_options_groups ⇒ Object (readonly)

The database's deck option groups as an array



17
18
19
# File 'lib/anki_record/anki21_database/anki21_database_attributes.rb', line 17

def deck_options_groups
  @deck_options_groups
end

#decks ⇒ Object (readonly)

The database's decks as an array



13
14
15
# File 'lib/anki_record/anki21_database/anki21_database_attributes.rb', line 13

def decks
  @decks
end

#note_types ⇒ Object (readonly)

The database's note types as an array



9
10
11
# File 'lib/anki_record/anki21_database/anki21_database_attributes.rb', line 9

def note_types
  @note_types
end