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

Returns a new instance of Job.



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

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

Class Method Details

.listObject



19
20
21
22
# File 'lib/themoviedb/job.rb', line 19

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