Module: Qingting::Api::Podcaster::ClassMethods

Defined in:
lib/qingting/api/podcaster.rb

Overview

Class methods

Instance Method Summary collapse

Instance Method Details

#activity(activity_id) ⇒ Object



65
66
67
68
# File 'lib/qingting/api/podcaster.rb', line 65

def activity(activity_id)
  url = eval("Base.v6_activity_#{activity_id}")
  Base.request(url)
end

#nowObject



55
56
57
58
# File 'lib/qingting/api/podcaster.rb', line 55

def now
  url = eval("Base.v6_now")
  Base.request(url)
end

#podcaster(id) ⇒ Object



40
41
42
43
# File 'lib/qingting/api/podcaster.rb', line 40

def podcaster(id)
  url = eval("Base.v6_podcasters_#{id}")
  Base.request(url)
end

#podcasters_attr(attr_ids, page = 1) ⇒ Object



35
36
37
38
# File 'lib/qingting/api/podcaster.rb', line 35

def podcasters_attr(attr_ids, page=1)
  url = Base.media_url + "podcasters/attr/#{attrids}/page/#{page} "
  Base.request(url)
end

#podcasters_attributesObject



20
21
22
23
# File 'lib/qingting/api/podcaster.rb', line 20

def podcasters_attributes
  url = eval("Base.v6_podcasters_attributes")
  Base.request(url)
end

#podcasters_channelondemands(qingting_id) ⇒ Object



45
46
47
48
# File 'lib/qingting/api/podcaster.rb', line 45

def podcasters_channelondemands(qingting_id)
  url = eval("Base.v6_podcasters_#{qingting_id}_channelondemands")
  Base.request(url)
end

#podcasters_guidesObject



15
16
17
18
# File 'lib/qingting/api/podcaster.rb', line 15

def podcasters_guides
  url = eval("Base.v6_podcasters_guides")
  Base.request(url)
end

#podcasters_recent(qingting_id) ⇒ Object



50
51
52
53
# File 'lib/qingting/api/podcaster.rb', line 50

def podcasters_recent(qingting_id)
  url = eval("Base.v6_podcasters_#{qingting_id}_recent")
  Base.request(url)
end

#podcasters_recommendsObject



30
31
32
33
# File 'lib/qingting/api/podcaster.rb', line 30

def podcasters_recommends
  url = eval("Base.v6_podcasters_recommends")
  Base.request(url)
end

#podcasters_type(type, page = 1) ⇒ Object



25
26
27
28
# File 'lib/qingting/api/podcaster.rb', line 25

def podcasters_type(type, page=1)
  url = Base.media_url + "podcasters/type/#{type}/page/#{page} "
  Base.request(url)
end

#topic(topic_id) ⇒ Object



60
61
62
63
# File 'lib/qingting/api/podcaster.rb', line 60

def topic(topic_id)
  url = eval("Base.v6_topic_#{topic_id}")
  Base.request(url)
end