Class: FacebookVideo::NotWorkingVideo

Inherits:
Object
  • Object
show all
Defined in:
lib/facebook_video.rb

Overview

Dummy video object containing info about error We will not return (or raise) errors - it is not deseable

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ NotWorkingVideo

Returns a new instance of NotWorkingVideo.



31
32
33
# File 'lib/facebook_video.rb', line 31

def initialize(error)
  @error = error
end

Instance Attribute Details

#errorObject

Returns the value of attribute error.



29
30
31
# File 'lib/facebook_video.rb', line 29

def error
  @error
end

Instance Method Details

#nameObject



39
40
41
# File 'lib/facebook_video.rb', line 39

def name
  @error
end

#urlObject



35
36
37
# File 'lib/facebook_video.rb', line 35

def url
  @error
end

#working?Boolean

Returns:

  • (Boolean)


43
44
45
# File 'lib/facebook_video.rb', line 43

def working?
  false
end