Sha256: f4bc5cb36fb7921b7ba1d1db83bee3acb29850395f572a1108f1837bb29122d5

Contents?: true

Size: 481 Bytes

Versions: 1

Compression:

Stored size: 481 Bytes

Contents

require 'hashie'
require 'hashie/trash'

module MovieStone
  class Movie < Hashie::Trash
    property :title,        from: :Title
    property :rating,       from: :imdbRating
    property :release_date, from: :Release
    property :year,         from: :Year
    property :genre,        from: :Genre
    property :actors,       from: :Actors
    property :summary,      from: :Plot

    property :imdb_url, from: :imdbID, with: ->(i) { "http://www.imdb.com/title/#{i}" }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
movie_stone-0.1.0 lib/movie_stone/movie.rb