Class: Gamesdb::Client::Platforms
- Inherits:
-
Cistern::Collection
- Object
- Cistern::Collection
- Gamesdb::Client::Platforms
- Defined in:
- lib/gamesdb/models/platforms.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
5 6 7 8 9 |
# File 'lib/gamesdb/models/platforms.rb', line 5 def all if data = self.connection.list_platforms["Platforms"]["Platform"] self.clone.load(data) end end |
#get(id) ⇒ Object
11 12 13 14 15 |
# File 'lib/gamesdb/models/platforms.rb', line 11 def get(id) if data = self.connection.get_platform(id)["Platform"] self.clone.new(data) end end |