Class: TrackPicture

Inherits:
TrackPictureOrigin show all
Defined in:
lib/ting_model/track_picture.rb

Class Method Summary collapse

Methods included from TrackPictureExtender

#next_id

Class Method Details

.gtn(key) ⇒ Object



11
12
13
# File 'lib/ting_model/track_picture.rb', line 11

def self.gtn(key)
  TrackPictureNode.seek(key).table_name
end

.shard(key) ⇒ Object



7
8
9
# File 'lib/ting_model/track_picture.rb', line 7

def self.shard(key)
  Object.const_get(TrackPictureNode.seek(key).class_name)
end

.stn(key) ⇒ Object



15
16
17
18
# File 'lib/ting_model/track_picture.rb', line 15

def self.stn(key)
  self.table_name = self.gtn(key)
  self
end