Class: EhbrsRubyUtils::WebUtils::Instance::Finances::Bills

Inherits:
Object
  • Object
show all
Defined in:
lib/ehbrs_ruby_utils/web_utils/instance/finances/bills.rb,
lib/ehbrs_ruby_utils/web_utils/instance/finances/bills/consume.rb,
lib/ehbrs_ruby_utils/web_utils/instance/finances/bills/consume/file.rb

Defined Under Namespace

Classes: Consume

Instance Method Summary collapse

Instance Method Details

#bills_directory(suffix) ⇒ Pathname

Returns:

  • (Pathname)


16
17
18
# File 'lib/ehbrs_ruby_utils/web_utils/instance/finances/bills.rb', line 16

def bills_directory(suffix)
  instance.read_entry('finances.bills.directory').to_pathname.join(suffix)
end

#consumeEhbrsRubyUtils::WebUtils::Instance::Finances::Bills::Consume



21
22
23
# File 'lib/ehbrs_ruby_utils/web_utils/instance/finances/bills.rb', line 21

def consume
  ::EhbrsRubyUtils::WebUtils::Instance::Finances::Bills::Consume.new(self)
end

#pending_directoryPathname

Returns:

  • (Pathname)


26
27
28
# File 'lib/ehbrs_ruby_utils/web_utils/instance/finances/bills.rb', line 26

def pending_directory
  bills_directory('pending')
end

#registered_directoryPathname

Returns:

  • (Pathname)


31
32
33
# File 'lib/ehbrs_ruby_utils/web_utils/instance/finances/bills.rb', line 31

def registered_directory
  bills_directory('registered')
end