Sha256: 16aeb96947c63a933660c61d33f7a0847b48b4d5756e7178c09a3d218f8ec388

Contents?: true

Size: 273 Bytes

Versions: 4

Compression:

Stored size: 273 Bytes

Contents

module PopcorntimeSearch
  class MovieResult
    attr_accessor :title, :year, :imdb

    def initialize(result)
      @title = result['title']
      @year  = result['year']
      @imdb  = result['imdb_id']
    end

    def to_s
      "#{title} (#{year})"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
popcorntime_search-1.2.0 lib/popcorntime_search/search_result.rb
popcorntime_search-1.1.0 lib/popcorntime_search/search_result.rb
popcorntime_search-1.0.0 lib/popcorntime_search/search_result.rb
popcorntime_search-0.1.0 lib/popcorntime_search/search_result.rb