Class: Track

Inherits:
TrackOrigin show all
Defined in:
lib/ting_model/track.rb

Class Method Summary collapse

Methods inherited from TrackOrigin

#dig_status_disp, #is_crawler_disp, #is_publish_disp, #is_v_disp, #to_topic_hash, #track_status_disp, #upload_source_disp, #user_source_disp

Methods included from TrackExtender

#next_id

Class Method Details

.gtn(key) ⇒ Object



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

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

.shard(key) ⇒ Object



6
7
8
# File 'lib/ting_model/track.rb', line 6

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

.stn(key) ⇒ Object



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

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