Skip to content

Instantly share code, notes, and snippets.

View supriya's full-sized avatar

supriya mahajan supriya

View GitHub Profile
.admin-top
= title "Stores for #{@agent}"
- form_tag "", :method => :get do
%p
= submit_tag "Generate CSV", :name => "commit"
.clear
%table.subdued.agent-districts
%thead
require "fastercsv"
class FirstDirectDepositIncentives
attr_reader :mode, :start_date, :end_date, :bucket, :report, :cards, :dry_run
def initialize(options ={})
@start_date = options.fetch(:start_date){Time.zone.now.beginning_of_day}
@end_date = options.fetch(:end_date){Time.zone.now}
@dry_run = options[:dry_run]
@incentives_agent = Agent.find_by_code("INSIGHT_CARDS")
require "fastercsv"
class FirstDirectDepositIncentives
attr_reader :mode, :start_date, :end_date, :bucket, :report, :cards, :dry_run
def initialize(options ={})
@start_date = options.fetch(:start_date){Time.zone.now.beginning_of_day}
@end_date = options.fetch(:end_date){Time.zone.now}
@dry_run = options[:dry_run]
@incentives_agent = Agent.find_by_code("INSIGHT_CARDS")
require "fastercsv"
class FirstDirectDepositIncentives
attr_reader :mode, :start_date, :end_date, :bucket, :report, :cards, :dry_run
def initialize(options ={})
@start_date = options.fetch(:start_date){Time.zone.now.beginning_of_day}
@end_date = options.fetch(:end_date){Time.zone.now}
@dry_run = options[:dry_run]
@incentives_agent = Agent.find_by_code("INSIGHT_CARDS")