Class: ObsidianFetch::Vault
- Inherits:
-
Object
- Object
- ObsidianFetch::Vault
- Defined in:
- lib/obsidian_fetch/vault.rb
Overview
Vaultスナップショットを表現するイミュータブルなデータ構造
Instance Attribute Summary collapse
-
#links_by_file_name ⇒ Object
readonly
Returns the value of attribute links_by_file_name.
-
#links_by_file_path ⇒ Object
readonly
Returns the value of attribute links_by_file_path.
-
#notes ⇒ Object
readonly
Returns the value of attribute notes.
-
#vault_pathes ⇒ Object
readonly
Returns the value of attribute vault_pathes.
Instance Method Summary collapse
-
#initialize(vault_pathes, notes:, links_by_file_path:, links_by_file_name:) ⇒ Vault
constructor
A new instance of Vault.
Constructor Details
#initialize(vault_pathes, notes:, links_by_file_path:, links_by_file_name:) ⇒ Vault
Returns a new instance of Vault.
15 16 17 18 19 20 |
# File 'lib/obsidian_fetch/vault.rb', line 15 def initialize(vault_pathes, notes:, links_by_file_path:, links_by_file_name:) @vault_pathes = vault_pathes @notes = notes @links_by_file_path = links_by_file_path @links_by_file_name = links_by_file_name end |
Instance Attribute Details
#links_by_file_name ⇒ Object (readonly)
Returns the value of attribute links_by_file_name.
9 10 11 |
# File 'lib/obsidian_fetch/vault.rb', line 9 def links_by_file_name @links_by_file_name end |
#links_by_file_path ⇒ Object (readonly)
Returns the value of attribute links_by_file_path.
8 9 10 |
# File 'lib/obsidian_fetch/vault.rb', line 8 def links_by_file_path @links_by_file_path end |
#notes ⇒ Object (readonly)
Returns the value of attribute notes.
7 8 9 |
# File 'lib/obsidian_fetch/vault.rb', line 7 def notes @notes end |
#vault_pathes ⇒ Object (readonly)
Returns the value of attribute vault_pathes.
6 7 8 |
# File 'lib/obsidian_fetch/vault.rb', line 6 def vault_pathes @vault_pathes end |