DeckOptionsGroup
represents a set of options that can be applied to an Anki deck. The interface to this has not been explored much so using the gem with these directly may involve breaking encapsulation.
Methods
- N
Included Modules
Class Public methods
new(anki21_database:, name: nil, args: nil) Link
Instantiates a new deck options group belonging to anki21_database
with name name
.
Source: show
# File lib/anki_record/deck_options_group/deck_options_group.rb, line 19 def initialize(anki21_database:, name: nil, args: nil) raise ArgumentError unless (name && args.nil?) || (args && args["name"]) @anki21_database = anki21_database if args setup_deck_options_group_instance_variables_from_existing(args:) else setup_deck_options_group_instance_variables(name:) end @anki21_database.add_deck_options_group self end