Class: IMDB::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/imdb/search.rb

Overview

Search

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject

Returns the value of attribute id.



15
16
17
# File 'lib/imdb/search.rb', line 15

def id
  @id
end

Returns the value of attribute link.



15
16
17
# File 'lib/imdb/search.rb', line 15

def link
  @link
end

#titleObject

Returns the value of attribute title.



15
16
17
# File 'lib/imdb/search.rb', line 15

def title
  @title
end

#yearObject

Returns the value of attribute year.



15
16
17
# File 'lib/imdb/search.rb', line 15

def year
  @year
end