lib/globalsms/info.rb in globalsms-0.4.0 vs lib/globalsms/info.rb in globalsms-0.4.1
- old
+ new
@@ -1,9 +1,9 @@
module GlobalSMS
class INFO
- def initialize(api_key, api_secret)
- @api_key = api_key
- @api_secret = api_secret
+ def initialize(args)
+ @api_key = args[:api_key]
+ @api_secret = args[:api_secret]
end
def originator_list
uri = "/originator/list?key=#{@api_key}&secret=#{@api_secret}"
get_to_api(uri)