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_packageObject (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

#collectionObject (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

#databaseObject (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_groupsObject (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

#decksObject (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_typesObject (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