class SoundcloudTrack
Attributes
id[R]
image_url[R]
title[R]
Public Class Methods
new(params = {})
click to toggle source
# File lib/soundgrab.rb, line 22 def initialize(params = {}) @id = params["id"] @title = params["title"] @image_url = params["artwork_url"] end
Public Instance Methods
embed_url()
click to toggle source
# File lib/soundgrab.rb, line 28 def embed_url "https://api.soundcloud.com/tracks/#{id}?auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true" end