Class: TaxJp::WelfarePension
- Inherits:
-
Object
- Object
- TaxJp::WelfarePension
- Defined in:
- lib/tax_jp/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.
-
#monthly_standard ⇒ Object
readonly
Returns the value of attribute monthly_standard.
-
#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.
Constructor Details
#initialize(attrs = {}) ⇒ WelfarePension
Returns a new instance of WelfarePension.
10 11 12 13 14 15 16 17 |
# File 'lib/tax_jp/welfare_pension.rb', line 10 def initialize(attrs = {}) @valid_from = attrs[:valid_from] @valid_until = attrs[:valid_until] @monthly_standard = attrs[:monthly_standard] @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.
8 9 10 |
# File 'lib/tax_jp/welfare_pension.rb', line 8 def child_support @child_support end |
#general ⇒ Object (readonly)
Returns the value of attribute general.
7 8 9 |
# File 'lib/tax_jp/welfare_pension.rb', line 7 def general @general end |
#monthly_standard ⇒ Object (readonly)
Returns the value of attribute monthly_standard.
6 7 8 |
# File 'lib/tax_jp/welfare_pension.rb', line 6 def monthly_standard @monthly_standard end |
#particular ⇒ Object (readonly)
Returns the value of attribute particular.
7 8 9 |
# File 'lib/tax_jp/welfare_pension.rb', line 7 def particular @particular end |
#valid_from ⇒ Object (readonly)
Returns the value of attribute valid_from.
5 6 7 |
# File 'lib/tax_jp/welfare_pension.rb', line 5 def valid_from @valid_from end |
#valid_until ⇒ Object (readonly)
Returns the value of attribute valid_until.
5 6 7 |
# File 'lib/tax_jp/welfare_pension.rb', line 5 def valid_until @valid_until end |
Instance Method Details
#general_amount ⇒ Object
19 20 21 |
# File 'lib/tax_jp/welfare_pension.rb', line 19 def general_amount floor_amount(monthly_standard * general) end |
#general_amount_half ⇒ Object
23 24 25 |
# File 'lib/tax_jp/welfare_pension.rb', line 23 def general_amount_half floor_amount(monthly_standard * general / 2) end |