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!, #create_fees!, #create_late_fees!, #create_not_in_good_standing!, #create_renewal_fees!, #current_period, #fee_payment_purchased!, #fees_paid!, #in_good_standing!, #last_period, #next_membership_number, #not_in_good_standing!, #not_in_good_standing_status, #not_in_good_standing_status!, #period, #period_end_on, #periods, #reclassify!, #register!, #reinstate!, #remove!, #status_add!, #status_assign!, #status_clear!, #status_remove!

Instance Method Details

#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

#not_in_good_standing_date(period:) ⇒ Object



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

def not_in_good_standing_date(period:)
  Date.new(period.year, 3, 1) # Membership are Not In Good Standing after March 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