Class: Tmdb::Job

Inherits:
Object
  • Object
show all
Defined in:
lib/themoviedb/job.rb

Constant Summary collapse

@@fields =
[
  :name,
  :department
]

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Job


3
4
5
6
7
8
9
# File 'lib/themoviedb/job.rb', line 3

def initialize(attributes={})
  attributes.each do |key, value|
    if self.respond_to?(key.to_sym)
      self.instance_variable_set("@#{key}", value)
    end
  end
end

Class Method Details

.listObject


21
22
23
24
# File 'lib/themoviedb/job.rb', line 21

def self.list
  search = Tmdb::Search.new("/job/list")
  search.fetch_response
end