Class: Conred::Video::Other

Inherits:
Object
  • Object
show all
Includes:
Conred::Video
Defined in:
lib/conred/video.rb

Instance Attribute Summary

Attributes included from Conred::Video

#error_message, #height, #video_id, #width

Instance Method Summary collapse

Methods included from Conred::Video

new, #vimeo_video?, #youtube_video?

Constructor Details

#initialize(arguments = {:error_message => "Video url you have provided is invalid"}) ⇒ Other

Returns a new instance of Other.



102
103
104
# File 'lib/conred/video.rb', line 102

def initialize(arguments = {:error_message => "Video url you have provided is invalid"})
  @error_message = arguments[:error_message]
end

Instance Method Details

#codeObject



106
107
108
# File 'lib/conred/video.rb', line 106

def code
  @error_message
end

#exist?Boolean

Returns:

  • (Boolean)


110
111
112
# File 'lib/conred/video.rb', line 110

def exist?
  false
end