Class: Tmdb::Job
- Inherits:
-
Object
- Object
- Tmdb::Job
- Defined in:
- lib/themoviedb-jzg/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 8 9 |
# File 'lib/themoviedb-jzg/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 |