Class: VoiceNotes::Resources::Notes

Inherits:
Base
  • Object
show all
Defined in:
lib/voice_notes/resources/notes.rb

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from VoiceNotes::Resources::Base

Instance Method Details

#find(id) ⇒ Hash

Retrieve a voice note by its short ID

Parameters:

  • id (String)

    The Base58 short ID of the note

Returns:

  • (Hash)

    Note data in JSON:API format



9
10
11
# File 'lib/voice_notes/resources/notes.rb', line 9

def find(id)
  get("/api/v1/notes/#{id}")
end