Class: IMDB::Result
Overview
Search
Instance Attribute Summary
Attributes inherited from Skeleton
Instance Method Summary collapse
- #imdb_id ⇒ Object
-
#initialize(imdb_id, title, link) ⇒ Result
constructor
A new instance of Result.
- #link ⇒ Object
- #title ⇒ Object
Methods inherited from Skeleton
json_create, #to_hash, #to_json
Constructor Details
#initialize(imdb_id, title, link) ⇒ Result
Returns a new instance of Result.
28 29 30 31 32 33 |
# File 'lib/imdb/search.rb', line 28 def initialize(imdb_id, title, link) super("Result",{:title => String, :link => String, :imdb_id => String}, [:imdb_id]) @title = title @link = link @imdb_id = imdb_id end |
Instance Method Details
#imdb_id ⇒ Object
43 44 45 |
# File 'lib/imdb/search.rb', line 43 def imdb_id @imdb_id end |
#link ⇒ Object
39 40 41 |
# File 'lib/imdb/search.rb', line 39 def link @link end |
#title ⇒ Object
35 36 37 |
# File 'lib/imdb/search.rb', line 35 def title @title end |