Class: Tiltify::FundraisingEventsResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/tiltify/resources/fundraising_events.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from Tiltify::Resource

Instance Method Details

#retrieve(fundraising_event_id:) ⇒ Object



4
5
6
# File 'lib/tiltify/resources/fundraising_events.rb', line 4

def retrieve(fundraising_event_id:)
  FundraisingEvent.new get_request("fundraising-events/#{fundraising_event_id}").body.dig("data")
end