Sha256: a5a1c0fcb6a2e132971d8b040c82922962339b7782123174b73f63d75c7e68f7

Contents?: true

Size: 292 Bytes

Versions: 10

Compression:

Stored size: 292 Bytes

Contents

module TMDBParty
  class Image
    attr_reader :url
    
    def initialize(url)
      @url = url
    end
    
    def self.parse(data)
      if data.is_a?(Array)
        data.collect do |url|
          Image.new(url)
        end
      else
        Image.new(data)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
jduff-tmdb_party-0.0.2 lib/tmdb_party/image.rb
jduff-tmdb_party-0.1.0 lib/tmdb_party/image.rb
jduff-tmdb_party-0.2.0 lib/tmdb_party/image.rb
jduff-tmdb_party-0.2.1 lib/tmdb_party/image.rb
maddox-tmdb_party-0.1.0 lib/tmdb_party/image.rb
maddox-tmdb_party-0.2.0 lib/tmdb_party/image.rb
maddox-tmdb_party-0.2.1 lib/tmdb_party/image.rb
maddox-tmdb_party-0.3.0 lib/tmdb_party/image.rb
tmdb_party-0.3.1 lib/tmdb_party/image.rb
tmdb_party-0.3.0 lib/tmdb_party/image.rb