Module: Movieman::OMDBAPI

Extended by:
OMDBAPI
Included in:
OMDBAPI
Defined in:
lib/movieman/omdbapi.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#fObject

Returns the value of attribute f.



10
11
12
# File 'lib/movieman/omdbapi.rb', line 10

def f
  @f
end

Class Method Details

.movie(t) ⇒ Object



20
21
22
23
24
# File 'lib/movieman/omdbapi.rb', line 20

def self.movie t
  f.get "/" do |r|
    r.params["t"] = t
  end
end

.search(q) ⇒ Object



26
27
28
29
30
31
# File 'lib/movieman/omdbapi.rb', line 26

def self.search q
  f.get do |r|
    r.url "/"
    r.params['s'] = q
  end
end