m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/lib/recording.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/recording.rb')
-rw-r--r--lib/recording.rb20
1 files changed, 15 insertions, 5 deletions
diff --git a/lib/recording.rb b/lib/recording.rb
index d1d7683..68b0428 100644
--- a/lib/recording.rb
+++ b/lib/recording.rb
@@ -24,13 +24,23 @@ class YouTubeRecording
end
class BandcampRecording
- attr_accessor :link
- def initialize link
- @link = link
+ attr_accessor :embed
+ def initialize _embed
+ @embed = _embed
end
def render
- template = ERB.new(File.read('templates/bandcamp.html.erb'), trim_mode: '-')
- template.result binding
+ @embed
+ end
+end
+
+class SoundCloudRecording
+ attr_accessor :embed
+ def initialize _embed
+ @embed = _embed
+ end
+
+ def render
+ @embed
end
end