Class: Tmdb::Job
- Inherits:
-
Object
- Object
- Tmdb::Job
- Defined in:
- lib/themoviedb/job.rb
Constant Summary collapse
- @@fields =
[ :name, :department ]
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Job
constructor
A new instance of Job.
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 |