Class: Intent::Core::Documents

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDocuments

Returns a new instance of Documents.



158
159
160
161
162
# File 'lib/intent/core.rb', line 158

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")
end

Instance Attribute Details

#inboxObject (readonly)

Returns the value of attribute inbox.



156
157
158
# File 'lib/intent/core.rb', line 156

def inbox
  @inbox
end

#inventoryObject (readonly)

Returns the value of attribute inventory.



155
156
157
# File 'lib/intent/core.rb', line 155

def inventory
  @inventory
end

#projectsObject (readonly)

Returns the value of attribute projects.



154
155
156
# File 'lib/intent/core.rb', line 154

def projects
  @projects
end