Class: IMDB::Result

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

Overview

Search

Instance Attribute Summary

Attributes inherited from Skeleton

#method_names, #model

Instance Method Summary collapse

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_idObject



43
44
45
# File 'lib/imdb/search.rb', line 43

def imdb_id
  @imdb_id
end


39
40
41
# File 'lib/imdb/search.rb', line 39

def link
  @link
end

#titleObject



35
36
37
# File 'lib/imdb/search.rb', line 35

def title
  @title
end