lib/vimeo_ruby.rb in vimeo_ruby-0.4.3 vs lib/vimeo_ruby.rb in vimeo_ruby-0.5.0
- old
+ new
@@ -8,13 +8,15 @@
require "vimeo_ruby/video"
module VimeoRuby
class Error < StandardError; end
- def self.get_user(vimeo_id)
- User.get_user(vimeo_id)
- end
+ class << self
+ def get_user(access_token: nil)
+ User.get_user(access_token: access_token)
+ end
- def self.get_video(vimeo_id)
- Video.get_video(vimeo_id)
+ def get_video(video_id)
+ Video.get_video(video_id)
+ end
end
end