Class: RingRingMedia::Advert

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/advert.rb

Instance Method Summary collapse

Instance Method Details

#get(id, options = {}) ⇒ Object



9
10
11
12
# File 'lib/advert.rb', line 9

def get(id, options = {})
  options = {:pid => id, :mu => "xml", :mo => "live", :e => "UTF-8", :rt => "ar", :ua => "", :ira => "" }.merge(options)    
  self.class.get('/index.php', { :query => options })
end

#post(id, options = {}) ⇒ Object



14
15
16
17
# File 'lib/advert.rb', line 14

def post(id, options = {})
  options = {:pid => id, :mu => "xml", :mo => "live", :e => "UTF-8", :rt => "ar", :ua => "", :ira => "" }.merge(options)    
  self.class.post('/index.php', { :query => options })
end