Class: Tmdb::TmdbBase

Inherits:
Object
  • Object
show all
Defined in:
lib/tmdb/tmdb_base.rb

Direct Known Subclasses

Movie, Person

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/tmdb/tmdb_base.rb', line 3

def id
  @id
end

#infoObject

Returns the value of attribute info.



3
4
5
# File 'lib/tmdb/tmdb_base.rb', line 3

def info
  @info
end

Instance Method Details

#apiObject



5
6
7
# File 'lib/tmdb/tmdb_base.rb', line 5

def api
  Tmdb.connection
end

#changes(options = {}) ⇒ Object



13
14
15
# File 'lib/tmdb/tmdb_base.rb', line 13

def changes(options={})
  api.send("#{self.class.name.split('::').last.underscore}_changes", self.id, options)
end

#status_messageObject



9
10
11
# File 'lib/tmdb/tmdb_base.rb', line 9

def status_message
  @info.status_message
end