class MovieDB::Movie
Create a new movie record. The values are stored in the key-value data store.
Default values are supplement during the instantiation of the class. Those values are overridden when you provide one.
You can use it like this:
movie = Movie.new() movie.title = "When Sally Met Harry"
You can raise a MovieError like this:
Public Instance Methods
ids_to_array(ids)
click to toggle source
# File lib/movieDB.rb, line 25 def ids_to_array(ids) arr ||= [] if ids.is_a? String arr << ids end if ids.is_a? Numeric arr << ids.to_s end if ids.is_a? Array ids.each do |n| arr << n end end return arr.flatten end