class Sunnyside::Query

Attributes

type[R]

Public Class Methods

new(type) click to toggle source
# File lib/sunnyside/query/query.rb, line 27
def initialize(type)
  @type = type        
end

Public Instance Methods

ledger_file() click to toggle source
# File lib/sunnyside/query/query.rb, line 39
def ledger_file
  puts 'Type in post date (YYYY-MM-DD)'
  date = Date.parse(gets.chomp)
  if date.is_a?(Date)
    Invoice.where(post_date: date).all.each { |invoice| self.payable_csv(invoice, date) }
  end
end
primary_id() click to toggle source
# File lib/sunnyside/query/query.rb, line 36
def primary_id
end
show_options() click to toggle source
# File lib/sunnyside/query/query.rb, line 31
def show_options
  if type.is_a?(Provider)
  end
end