lib/tmdb_party/movie.rb in maddox-tmdb_party-0.2.0 vs lib/tmdb_party/movie.rb in maddox-tmdb_party-0.2.1
- old
+ new
@@ -3,16 +3,17 @@
include Attributes
attr_reader :tmdb
attributes :title, :short_overview, :id, :score, :imdb, :type, :url, :popularity, :alternative_title
attributes :release, :type=>DateTime
- attributes :id, :type => Integer
+ attributes :id, :runtime, :type => Integer
attributes :popularity, :score, :type => Float
attributes :poster, :backdrop, :type => Image
attributes :homepage, :lazy => :get_info!
attributes :trailer, :lazy => :get_info!, :type=> Video
attributes :categories, :lazy => :get_info!, :type=> Category
+ attributes :people, :lazy => :get_info!, :type=> Person
def initialize(values, tmdb)
@tmdb = tmdb
self.attributes = values
end
\ No newline at end of file