Class: Tiltify::CausesResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/tiltify/resources/causes.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(cause_id:) ⇒ Object



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

def retrieve(cause_id:)
  Cause.new get_request("causes/#{cause_id}").body.dig("data")
end