Sha256: 599ab25765e2d8bd983e52221e5c8738856bd82fcd2df68b3fd34f7ef6112bca

Contents?: true

Size: 988 Bytes

Versions: 37

Compression:

Stored size: 988 Bytes

Contents

# frozen_string_literal: true

require 'avm/instances/base'
require 'eac_ruby_utils/core_ext'

module EhbrsRubyUtils
  module WebUtils
    class Instance < ::Avm::Instances::Base
      class Finances
        class Bills
          require_sub __FILE__
          common_constructor :finances
          delegate :instance, to: :finances

          # @return [Pathname]
          def bills_directory(suffix)
            instance.read_entry('finances.bills.directory').to_pathname.join(suffix)
          end

          # @return [EhbrsRubyUtils::WebUtils::Instance::Finances::Bills::Consume]
          def consume
            ::EhbrsRubyUtils::WebUtils::Instance::Finances::Bills::Consume.new(self)
          end

          # @return [Pathname]
          def pending_directory
            bills_directory('pending')
          end

          # @return [Pathname]
          def registered_directory
            bills_directory('registered')
          end
        end
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
ehbrs_ruby_utils-0.44.0 lib/ehbrs_ruby_utils/web_utils/instance/finances/bills.rb
ehbrs_ruby_utils-0.41.1 lib/ehbrs_ruby_utils/web_utils/instance/finances/bills.rb
ehbrs_ruby_utils-0.41.0 lib/ehbrs_ruby_utils/web_utils/instance/finances/bills.rb
ehbrs_ruby_utils-0.40.0 lib/ehbrs_ruby_utils/web_utils/instance/finances/bills.rb
ehbrs_ruby_utils-0.39.0 lib/ehbrs_ruby_utils/web_utils/instance/finances/bills.rb
ehbrs_ruby_utils-0.38.0 lib/ehbrs_ruby_utils/web_utils/instance/finances/bills.rb
ehbrs_ruby_utils-0.37.0 lib/ehbrs_ruby_utils/web_utils/instance/finances/bills.rb
ehbrs_ruby_utils-0.36.1 lib/ehbrs_ruby_utils/web_utils/instance/finances/bills.rb
ehbrs_ruby_utils-0.36.0 lib/ehbrs_ruby_utils/web_utils/instance/finances/bills.rb
ehbrs_ruby_utils-0.35.0 lib/ehbrs_ruby_utils/web_utils/instance/finances/bills.rb
ehbrs_ruby_utils-0.33.0 lib/ehbrs_ruby_utils/web_utils/instance/finances/bills.rb
ehbrs_ruby_utils-0.32.0 lib/ehbrs_ruby_utils/web_utils/instance/finances/bills.rb
ehbrs_ruby_utils-0.31.0 lib/ehbrs_ruby_utils/web_utils/instance/finances/bills.rb
ehbrs_ruby_utils-0.30.0 lib/ehbrs_ruby_utils/web_utils/instance/finances/bills.rb
ehbrs_ruby_utils-0.29.0 lib/ehbrs_ruby_utils/web_utils/instance/finances/bills.rb
ehbrs_ruby_utils-0.28.0 lib/ehbrs_ruby_utils/web_utils/instance/finances/bills.rb
ehbrs_ruby_utils-0.27.1 lib/ehbrs_ruby_utils/web_utils/instance/finances/bills.rb
ehbrs_ruby_utils-0.27.0 lib/ehbrs_ruby_utils/web_utils/instance/finances/bills.rb
ehbrs_ruby_utils-0.26.0 lib/ehbrs_ruby_utils/web_utils/instance/finances/bills.rb
ehbrs_ruby_utils-0.25.1 lib/ehbrs_ruby_utils/web_utils/instance/finances/bills.rb