Class: GOM::Storage::Filesystem::Collection::Fetcher

Inherits:
Object
  • Object
show all
Defined in:
lib/gom/storage/filesystem/collection/fetcher.rb

Overview

A class collection fetcher for the filesystem adapter.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(drafts, view) ⇒ Fetcher

Returns a new instance of Fetcher.



8
9
10
# File 'lib/gom/storage/filesystem/collection/fetcher.rb', line 8

def initialize(drafts, view)
  @drafts, @view = drafts, view
end

Instance Attribute Details

#draftsObject

Returns the value of attribute drafts.



5
6
7
# File 'lib/gom/storage/filesystem/collection/fetcher.rb', line 5

def drafts
  @drafts
end

#viewObject

Returns the value of attribute view.



6
7
8
# File 'lib/gom/storage/filesystem/collection/fetcher.rb', line 6

def view
  @view
end