Class: RingRingMedia::Advert
Instance Method Summary collapse
Instance Method Details
#get(id, options = {}) ⇒ Object
9 10 11 12 |
# File 'lib/advert.rb', line 9 def get(id, = {}) = {:pid => id, :mu => "xml", :mo => "live", :e => "UTF-8", :rt => "ar", :ua => "", :ira => "" }.merge() self.class.get('/index.php', { :query => }) end |
#post(id, options = {}) ⇒ Object
14 15 16 17 |
# File 'lib/advert.rb', line 14 def post(id, = {}) = {:pid => id, :mu => "xml", :mo => "live", :e => "UTF-8", :rt => "ar", :ua => "", :ira => "" }.merge() self.class.post('/index.php', { :query => }) end |