Class: Vimeo::Video

Inherits:
Object
  • Object
show all
Defined in:
lib/vimeo/objects/video.rb

Instance Method Summary collapse

Methods inherited from Object

#to_ostruct

Constructor Details

#initialize(options = {}) ⇒ Video

Returns a new instance of Video.



4
5
6
7
8
# File 'lib/vimeo/objects/video.rb', line 4

def initialize(options = {})
  super options

  self.id = options["uri"].gsub("/videos/", "")
end