Class: Patreon::MembersResource
- Defined in:
- lib/patreon/resources/members.rb
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
Methods inherited from Resource
Constructor Details
This class inherits a constructor from Patreon::Resource
Instance Method Details
#retrieve(member_id:, member_fields: Member::DEFAULT_FIELDS, tier_fields: Tier::DEFAULT_FIELDS) ⇒ Object
4 5 6 7 |
# File 'lib/patreon/resources/members.rb', line 4 def retrieve(member_id:, member_fields: Member::DEFAULT_FIELDS, tier_fields: Tier::DEFAULT_FIELDS) response = get_request("members/#{member_id}?include=currently_entitled_tiers&fields[member]=#{member_fields}&fields[tier]=#{tier_fields}") Member.new response.body end |