Class: FaithTeams::API::V2::Entity::Contribution

Inherits:
Base
  • Object
show all
Defined in:
lib/faithteams/api/v2/entity/contribution.rb

Overview

Wraps a faithteams contribution object.

Instance Method Summary collapse

Methods inherited from Base

#initialize, #saved?, #to_h

Constructor Details

This class inherits a constructor from FaithTeams::API::V2::Entity::Base

Instance Method Details

#recordsArray<ContributionRecord>

Returns the contribution records.

Returns:



10
11
12
13
14
# File 'lib/faithteams/api/v2/entity/contribution.rb', line 10

def records
  attributes.map do |record|
    FaithTeams::API::V2::Entity::ContributionRecord.new(attributes: record)
  end
end