Class: TaxJp::SocialInsurances::WelfarePension
- Inherits:
-
Object
- Object
- TaxJp::SocialInsurances::WelfarePension
- Defined in:
- lib/tax_jp/social_insurances/welfare_pension.rb
Overview
厚生年金
Instance Attribute Summary collapse
-
#child_support ⇒ Object
readonly
Returns the value of attribute child_support.
-
#general ⇒ Object
readonly
Returns the value of attribute general.
-
#grade ⇒ Object
readonly
Returns the value of attribute grade.
-
#particular ⇒ Object
readonly
Returns the value of attribute particular.
-
#valid_from ⇒ Object
readonly
Returns the value of attribute valid_from.
-
#valid_until ⇒ Object
readonly
Returns the value of attribute valid_until.
Instance Method Summary collapse
- #general_amount ⇒ Object
- #general_amount_half ⇒ Object
-
#initialize(attrs = {}) ⇒ WelfarePension
constructor
A new instance of WelfarePension.
- #particular_amount ⇒ Object
- #particular_amount_half ⇒ Object
Constructor Details
#initialize(attrs = {}) ⇒ WelfarePension
Returns a new instance of WelfarePension.
8 9 10 11 12 13 14 15 |
# File 'lib/tax_jp/social_insurances/welfare_pension.rb', line 8 def initialize(attrs = {}) @grade = attrs[:grade] @valid_from = attrs[:valid_from] @valid_until = attrs[:valid_until] @general= attrs[:general] @particular= attrs[:particular] @child_support = attrs[:child_support] end |
Instance Attribute Details
#child_support ⇒ Object (readonly)
Returns the value of attribute child_support.
6 7 8 |
# File 'lib/tax_jp/social_insurances/welfare_pension.rb', line 6 def child_support @child_support end |
#general ⇒ Object (readonly)
Returns the value of attribute general.
5 6 7 |
# File 'lib/tax_jp/social_insurances/welfare_pension.rb', line 5 def general @general end |
#grade ⇒ Object (readonly)
Returns the value of attribute grade.
3 4 5 |
# File 'lib/tax_jp/social_insurances/welfare_pension.rb', line 3 def grade @grade end |
#particular ⇒ Object (readonly)
Returns the value of attribute particular.
5 6 7 |
# File 'lib/tax_jp/social_insurances/welfare_pension.rb', line 5 def particular @particular end |
#valid_from ⇒ Object (readonly)
Returns the value of attribute valid_from.
4 5 6 |
# File 'lib/tax_jp/social_insurances/welfare_pension.rb', line 4 def valid_from @valid_from end |
#valid_until ⇒ Object (readonly)
Returns the value of attribute valid_until.
4 5 6 |
# File 'lib/tax_jp/social_insurances/welfare_pension.rb', line 4 def valid_until @valid_until end |
Instance Method Details
#general_amount ⇒ Object
17 18 19 |
# File 'lib/tax_jp/social_insurances/welfare_pension.rb', line 17 def general_amount floor_amount(monthly_standard * general) end |
#general_amount_half ⇒ Object
21 22 23 |
# File 'lib/tax_jp/social_insurances/welfare_pension.rb', line 21 def general_amount_half floor_amount(monthly_standard * general / 2) end |
#particular_amount ⇒ Object
25 26 27 |
# File 'lib/tax_jp/social_insurances/welfare_pension.rb', line 25 def particular_amount floor_amount(monthly_standard * particular) end |
#particular_amount_half ⇒ Object
29 30 31 |
# File 'lib/tax_jp/social_insurances/welfare_pension.rb', line 29 def particular_amount_half floor_amount(monthly_standard * particular / 2) end |