RingRingAds 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/advert.rb +12 -10
  2. metadata +2 -2
data/lib/advert.rb CHANGED
@@ -1,17 +1,19 @@
1
1
  require 'rubygems'
2
2
  require 'httparty'
3
3
 
4
- class Advert
5
- include HTTParty
6
- base_uri 'http://iam.ringringmedia.com'
4
+ module RingRingMedia
5
+ class Advert
6
+ include HTTParty
7
+ base_uri 'http://iam.ringringmedia.com'
7
8
 
8
- def get(id, options = {})
9
- options = {:pid => id, :mu => "xml", :mo => "live", :e => "UTF-8", :rt => "ar", :ua => "", :ira => "" }.merge(options)
10
- self.class.get('/index.php', { :query => options })
11
- end
9
+ def get(id, options = {})
10
+ options = {:pid => id, :mu => "xml", :mo => "live", :e => "UTF-8", :rt => "ar", :ua => "", :ira => "" }.merge(options)
11
+ self.class.get('/index.php', { :query => options })
12
+ end
12
13
 
13
- def post(id, options = {})
14
- options = {:pid => id, :mu => "xml", :mo => "live", :e => "UTF-8", :rt => "ar", :ua => "", :ira => "" }.merge(options)
15
- self.class.post('/index.php', { :query => options })
14
+ def post(id, options = {})
15
+ options = {:pid => id, :mu => "xml", :mo => "live", :e => "UTF-8", :rt => "ar", :ua => "", :ira => "" }.merge(options)
16
+ self.class.post('/index.php', { :query => options })
17
+ end
16
18
  end
17
19
  end
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 1
7
+ - 2
8
8
  - 0
9
- version: 0.1.0
9
+ version: 0.2.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jason Cale