Class: Rufio::BookmarkStorage

Inherits:
Object
  • Object
show all
Defined in:
lib/rufio/bookmark_storage.rb

Overview

ブックマークストレージの基底クラス

Direct Known Subclasses

JsonBookmarkStorage, YamlBookmarkStorage

Instance Method Summary collapse

Constructor Details

#initialize(file_path) ⇒ BookmarkStorage

Returns a new instance of BookmarkStorage.



11
12
13
# File 'lib/rufio/bookmark_storage.rb', line 11

def initialize(file_path)
  @file_path = file_path
end

Instance Method Details

#loadObject

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/rufio/bookmark_storage.rb', line 15

def load
  raise NotImplementedError, 'Subclasses must implement #load'
end

#save(_bookmarks) ⇒ Object

Raises:

  • (NotImplementedError)


19
20
21
# File 'lib/rufio/bookmark_storage.rb', line 19

def save(_bookmarks)
  raise NotImplementedError, 'Subclasses must implement #save'
end