Class: FaithTeams::API::V2::Entity::Fund
- Defined in:
- lib/faithteams/api/v2/entity/fund.rb
Overview
Wraps a faithteams fund object.
Instance Method Summary collapse
- #active? ⇒ Boolean
-
#default ⇒ String?
"N" for no, "Y" for yes.
- #default? ⇒ Boolean
- #description ⇒ String?
- #fund_id ⇒ Integer?
- #name ⇒ String?
-
#online_status ⇒ String?
"A" for active, "I" for inactive.
- #org_id ⇒ Integer?
-
#status ⇒ String?
"A" for active, "I" for inactive.
-
#tax_deductible ⇒ String?
"T" for true?, "Y" for yes?.
Methods inherited from Base
Constructor Details
This class inherits a constructor from FaithTeams::API::V2::Entity::Base
Instance Method Details
#active? ⇒ Boolean
50 51 52 |
# File 'lib/faithteams/api/v2/entity/fund.rb', line 50 def active? status == "A" end |
#default ⇒ String?
Returns "N" for no, "Y" for yes.
10 11 12 |
# File 'lib/faithteams/api/v2/entity/fund.rb', line 10 def default read_attribute(:isDefault).presence end |
#default? ⇒ Boolean
15 16 17 |
# File 'lib/faithteams/api/v2/entity/fund.rb', line 15 def default? default == "Y" end |
#description ⇒ String?
20 21 22 |
# File 'lib/faithteams/api/v2/entity/fund.rb', line 20 def description read_attribute(:description).presence end |
#fund_id ⇒ Integer?
25 26 27 |
# File 'lib/faithteams/api/v2/entity/fund.rb', line 25 def fund_id read_attribute(:fundId) end |
#name ⇒ String?
30 31 32 |
# File 'lib/faithteams/api/v2/entity/fund.rb', line 30 def name read_attribute(:name).presence end |
#online_status ⇒ String?
Returns "A" for active, "I" for inactive.
35 36 37 |
# File 'lib/faithteams/api/v2/entity/fund.rb', line 35 def online_status read_attribute(:onlineStatus).presence end |
#org_id ⇒ Integer?
40 41 42 |
# File 'lib/faithteams/api/v2/entity/fund.rb', line 40 def org_id read_attribute(:orgId) end |
#status ⇒ String?
Returns "A" for active, "I" for inactive.
45 46 47 |
# File 'lib/faithteams/api/v2/entity/fund.rb', line 45 def status read_attribute(:status).presence end |
#tax_deductible ⇒ String?
Returns "T" for true?, "Y" for yes?.
55 56 57 |
# File 'lib/faithteams/api/v2/entity/fund.rb', line 55 def tax_deductible read_attribute(:taxDeductible).presence end |