nuntium_api 0.5 → 0.6
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.
- data/lib/nuntium.rb +2 -2
- metadata +3 -3
data/lib/nuntium.rb
CHANGED
@@ -21,7 +21,7 @@ class Nuntium
|
|
21
21
|
# Gets a country given its iso2 or iso3 code, or nil if a country with that iso does not exist.
|
22
22
|
def country(iso)
|
23
23
|
c = self.class.get "#{@url}/api/countries/#{iso}.json"
|
24
|
-
c.
|
24
|
+
c.class <= String ? nil : c
|
25
25
|
end
|
26
26
|
|
27
27
|
# Gets the list of carriers known to Nuntium that belong to a country, given its
|
@@ -37,7 +37,7 @@ class Nuntium
|
|
37
37
|
# Gets a carrier given its guid, or nil if a carrier with that guid does not exist.
|
38
38
|
def carrier(guid)
|
39
39
|
c = self.class.get "#{@url}/api/carriers/#{guid}.json"
|
40
|
-
c.
|
40
|
+
c.class <= String ? nil : c
|
41
41
|
end
|
42
42
|
|
43
43
|
# Returns the list of channels belonging to the application or that don't
|
metadata
CHANGED