Class: IMDB::Result
- Inherits:
-
Object
- Object
- IMDB::Result
- Defined in:
- lib/imdb/search.rb
Overview
Search
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#link ⇒ Object
Returns the value of attribute link.
-
#title ⇒ Object
Returns the value of attribute title.
-
#year ⇒ Object
Returns the value of attribute year.
Instance Method Summary collapse
-
#initialize(id, title, link) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(id, title, link) ⇒ Result
Returns a new instance of Result.
17 18 19 20 21 |
# File 'lib/imdb/search.rb', line 17 def initialize(id, title, link) @title = title @link = link @id = id end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
15 16 17 |
# File 'lib/imdb/search.rb', line 15 def id @id end |
#link ⇒ Object
Returns the value of attribute link.
15 16 17 |
# File 'lib/imdb/search.rb', line 15 def link @link end |
#title ⇒ Object
Returns the value of attribute title.
15 16 17 |
# File 'lib/imdb/search.rb', line 15 def title @title end |
#year ⇒ Object
Returns the value of attribute year.
15 16 17 |
# File 'lib/imdb/search.rb', line 15 def year @year end |