Sha256: afeafdc1627137942873b5171522b4209c62481756b2e5501f0e6efa8e7af871

Contents?: true

Size: 1.23 KB

Versions: 3

Compression:

Stored size: 1.23 KB

Contents

# frozen_string_literal: true

module FaithTeams
  module API
    module V2
      module Entity
        # Wraps a faithteams fund object.
        class Fund < Base
          # @return [String, nil] "N" for no, "Y" for yes
          def default
            read_attribute(:isDefault).presence
          end

          # @return [String, nil]
          def description
            read_attribute(:description).presence
          end

          # @return [Integer, nil]
          def fund_id
            read_attribute(:fundId)
          end

          # @return [String, nil]
          def name
            read_attribute(:name).presence
          end

          # @return [String, nil] "A" for active, "I" for inactive
          def online_status
            read_attribute(:onlineStatus).presence
          end

          # @return [Integer, nil]
          def org_id
            read_attribute(:orgId)
          end

          # @return [String, nil] "A" for active, "I" for inactive
          def status
            read_attribute(:status).presence
          end

          # @return [String, nil] "T" for true?, "Y" for yes?
          def tax_deductible
            read_attribute(:taxDeductible).presence
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
faithteams-api-4.0.1 lib/faithteams/api/v2/entity/fund.rb
faithteams-api-2.0.2 lib/faithteams/api/v2/entity/fund.rb
faithteams-api-2.0.1 lib/faithteams/api/v2/entity/fund.rb