Class: Intent::Core::Documents

Inherits:
Object
  • Object
show all
Defined in:
lib/intent/core/documents.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDocuments

Returns a new instance of Documents.



9
10
11
12
13
14
# File 'lib/intent/core/documents.rb', line 9

def initialize
  @projects = Projects.new("#{Intent::Env.documents_dir}/projects.txt")
  @inventory = Inventory.new("#{Intent::Env.documents_dir}/inventory.txt")
  @inbox = Inbox.new("#{Intent::Env.documents_dir}/todo.txt")
  @working_directory = Directory.new(Dir.pwd, @projects)
end

Instance Attribute Details

#inboxObject (readonly)

Returns the value of attribute inbox.



6
7
8
# File 'lib/intent/core/documents.rb', line 6

def inbox
  @inbox
end

#inventoryObject (readonly)

Returns the value of attribute inventory.



5
6
7
# File 'lib/intent/core/documents.rb', line 5

def inventory
  @inventory
end

#projectsObject (readonly)

Returns the value of attribute projects.



4
5
6
# File 'lib/intent/core/documents.rb', line 4

def projects
  @projects
end

#working_directoryObject (readonly)

Returns the value of attribute working_directory.



7
8
9
# File 'lib/intent/core/documents.rb', line 7

def working_directory
  @working_directory
end