Class: Effective::Registrar

Inherits:
Object
  • Object
show all
Includes:
EffectiveMembershipsRegistrar
Defined in:
app/models/effective/registrar.rb

Instance Method Summary collapse

Methods included from EffectiveMembershipsRegistrar

#advance_period, #assign!, #bad_standing!, #create_fees!, #create_late_fees!, #create_renewal_fees!, #current_period, #fee_payment_purchased!, #fees_paid!, #good_standing!, #last_period, #next_membership_number, #period, #period_end_on, #periods, #reclassify!, #register!, #reinstate!, #remove!, #status_add!, #status_assign!, #status_clear!, #status_remove!, #update_membership_status!

Instance Method Details

#bad_standing_date(period:) ⇒ Object



14
15
16
# File 'app/models/effective/registrar.rb', line 14

def bad_standing_date(period:)
  Date.new(period.year, 3, 1) # Membership in bad standing after March 1st
end

#late_fee_date(period:) ⇒ Object



10
11
12
# File 'app/models/effective/registrar.rb', line 10

def late_fee_date(period:)
  Date.new(period.year, 2, 1) # Fees are late after February 1st
end

#renewal_fee_date(date:) ⇒ Object



6
7
8
# File 'app/models/effective/registrar.rb', line 6

def renewal_fee_date(date:)
  Date.new(date.year, 12, 1) # Fees roll over every December 1st
end