[Solved] What’s the difference between “#{self.key}” and “vynd6tg1hh”? [closed]


def get_wistia_media
  Wistia::Media.get(wistia_key)
end

Is calling a class method

def wistia_key
  "#{self.key}"
end

Is defined as an instance method, try def self.wistia_key

def wistia_key
  "vynd6tg1hh"
end

Just returns a string that will always be the same.

2

solved What’s the difference between “#{self.key}” and “vynd6tg1hh”? [closed]